mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-09-03 22:47:03 +03:00
Small fixes
This commit is contained in:
parent
d76fde37df
commit
71718db8f0
13 changed files with 101 additions and 177 deletions
|
|
@ -13,6 +13,8 @@ class AppAdminStore extends AbstractAppStore
|
|||
|
||||
this.weakPassword = ko.observable(false);
|
||||
this.useLocalProxyForExternalImages = ko.observable(false);
|
||||
|
||||
this.dataFolderAccess = ko.observable(false);
|
||||
}
|
||||
|
||||
populate() {
|
||||
|
|
@ -23,6 +25,14 @@ class AppAdminStore extends AbstractAppStore
|
|||
|
||||
this.weakPassword(!!settingsGet('WeakPassword'));
|
||||
this.useLocalProxyForExternalImages(!!settingsGet('UseLocalProxyForExternalImages'));
|
||||
|
||||
if (settingsGet('Auth')) {
|
||||
this.checkDataFolder();
|
||||
}
|
||||
}
|
||||
|
||||
checkDataFolder() {
|
||||
$.get('./data/VERSION?' + window.Math.random()).then((value) => this.dataFolderAccess(true));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue