mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-30 20:49:20 +03:00
Also reduce admin remote fetch
This commit is contained in:
parent
c1228d09f0
commit
35bce8cf62
11 changed files with 148 additions and 260 deletions
|
|
@ -39,7 +39,7 @@ class PluginPopupView extends AbstractViewPopup {
|
|||
}
|
||||
|
||||
saveCommand() {
|
||||
const list = {
|
||||
const oConfig = {
|
||||
Id: this.id(),
|
||||
Settings: {}
|
||||
};
|
||||
|
|
@ -49,15 +49,15 @@ class PluginPopupView extends AbstractViewPopup {
|
|||
if (false === value || true === value) {
|
||||
value = value ? 1 : 0;
|
||||
}
|
||||
list.Settings[oItem.Name] = value;
|
||||
oConfig.Settings[oItem.Name] = value;
|
||||
});
|
||||
|
||||
this.saveError('');
|
||||
Remote.pluginSettingsUpdate(iError =>
|
||||
iError
|
||||
Remote.request('AdminPluginSettingsUpdate',
|
||||
iError => iError
|
||||
? this.saveError(getNotification(iError))
|
||||
: this.cancelCommand()
|
||||
, list);
|
||||
: this.cancelCommand(),
|
||||
oConfig);
|
||||
}
|
||||
|
||||
onShow(oPlugin) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue