diff --git a/CHANGELOG.md b/CHANGELOG.md index af8451a70a6..21eaa5f0482 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +## Version XX.XX.XX +Fixes: +- [remote-config] Moving the remote config enable/disable functionality to the drop-down + ## Version 24.10.x Dependencies: diff --git a/plugins/remote-config/frontend/public/javascripts/countly.views.js b/plugins/remote-config/frontend/public/javascripts/countly.views.js index f4716092fc5..ded3fefd01c 100644 --- a/plugins/remote-config/frontend/public/javascripts/countly.views.js +++ b/plugins/remote-config/frontend/public/javascripts/countly.views.js @@ -810,19 +810,22 @@ refresh(); }); }, - startParameter: function(rowObj) { - this.toggleParameterState(rowObj, "Running"); - }, - stopParameter: function(rowObj) { - this.toggleParameterState(rowObj, "Stopped"); - }, handleCommand: function(command, scope, row) { var self = this; switch (command) { + + case 'disable': + self.toggleParameterState(row, "Stopped"); + break; + case "edit": self.openDrawer("parameters", row); break; + case 'enable': + this.toggleParameterState(row, "Running"); + break; + case "remove": CountlyHelpers.confirm(this.i18n("remote-config.confirm-parameter-delete", "" + row.parameter_key + ""), "popStyleGreen", function(result) { if (!result) { @@ -1033,4 +1036,4 @@ this.renderWhenReady(mainView); }); app.addMenu("improve", {code: "remote-config", permission: FEATURE_NAME, pluginName: "remote-config", url: "#/remote-config", text: "sidebar.remote-config", icon: '