snappymail/dev/Remote/Admin/Fetch.js

25 lines
496 B
JavaScript
Raw Normal View History

import { AbstractFetchRemote } from 'Remote/AbstractFetch';
class RemoteAdminFetch extends AbstractFetchRemote {
/**
* @param {?Function} fCallback
* @param {?} oData
*/
saveConfig(oData, fCallback) {
this.request('AdminSettingsUpdate', fCallback, oData);
}
2022-02-28 17:38:47 +08:00
/**
* @param {string} key
* @param {?scalar} value
* @param {?Function} fCallback
*/
saveSetting(key, value, fCallback) {
this.saveConfig({[key]: value}, fCallback);
}
2016-06-30 08:02:45 +08:00
}
export default new RemoteAdminFetch();