all items can now be deleted

This commit is contained in:
electr0sheep 2018-02-26 21:12:46 -07:00
parent e626a18676
commit 12b6368a32
No known key found for this signature in database
GPG Key ID: 981E1D96282F7140

View File

@ -638,7 +638,11 @@
} }
self.onSettingsBeforeSave = function () { self.onSettingsBeforeSave = function () {
self.recursiveDeleteProperties(self.controlsFromServer); self.recursiveDeleteProperties(self.controlsFromServer);
self.settingsViewModel.settings.plugins.customControl.controls = self.controlsFromServer; if (self.controlsFromServer.length == 0) {
self.settingsViewModel.settings.plugins.customControl.controls = "";
} else {
self.settingsViewModel.settings.plugins.customControl.controls = self.controlsFromServer;
}
} }
self.onEventSettingsUpdated = function (payload) { self.onEventSettingsUpdated = function (payload) {