Rename new Settings.saveSettings to Settings.mergeSettings
This commit is contained in:
parent
dcb2704a28
commit
0cfb6d36ca
|
@ -113,7 +113,7 @@ export default class {
|
|||
return setting ? setting.value : undefined;
|
||||
}
|
||||
|
||||
static saveSettings(set_id, newSettings, settingsUpdated) {
|
||||
static mergeSettings(set_id, newSettings, settingsUpdated) {
|
||||
const set = this.getSet(set_id);
|
||||
if (!set) return;
|
||||
const updatedSettings = [];
|
||||
|
@ -132,6 +132,7 @@ export default class {
|
|||
}
|
||||
}
|
||||
|
||||
this.saveSettings();
|
||||
return settingsUpdated ? settingsUpdated(updatedSettings) : updatedSettings;
|
||||
}
|
||||
|
||||
|
|
|
@ -105,7 +105,7 @@ export default class {
|
|||
static internalSettings(set_id) {
|
||||
const set = Settings.getSet(set_id);
|
||||
if (!set) return;
|
||||
return this.settings(set.headertext, set.settings, null, null, newSettings => Settings.saveSettings(set.id, newSettings));
|
||||
return this.settings(set.headertext, set.settings, null, null, newSettings => Settings.mergeSettings(set.id, newSettings));
|
||||
}
|
||||
|
||||
static contentSettings(content) {
|
||||
|
|
Loading…
Reference in New Issue