mirror of
https://github.com/the-djmaze/snappymail.git
synced 2025-01-08 07:48:02 +08:00
24 lines
496 B
JavaScript
24 lines
496 B
JavaScript
import { AbstractFetchRemote } from 'Remote/AbstractFetch';
|
|
|
|
class RemoteAdminFetch extends AbstractFetchRemote {
|
|
|
|
/**
|
|
* @param {?Function} fCallback
|
|
* @param {?} oData
|
|
*/
|
|
saveConfig(oData, fCallback) {
|
|
this.request('AdminSettingsUpdate', fCallback, oData);
|
|
}
|
|
|
|
/**
|
|
* @param {string} key
|
|
* @param {?scalar} value
|
|
* @param {?Function} fCallback
|
|
*/
|
|
saveSetting(key, value, fCallback) {
|
|
this.saveConfig({[key]: value}, fCallback);
|
|
}
|
|
|
|
}
|
|
|
|
export default new RemoteAdminFetch();
|