Changed domain server restart/save button behavior to be correct

This commit is contained in:
seefo 2017-06-19 12:09:20 -07:00
parent 3d4b9c82aa
commit 705ce4c789
2 changed files with 3 additions and 3 deletions

View file

@ -147,7 +147,7 @@
{ {
"name": "security", "name": "security",
"label": "Security", "label": "Security",
"restart": true, "restart": false,
"settings": [ "settings": [
{ {
"name": "http_username", "name": "http_username",

View file

@ -1372,12 +1372,12 @@ function badgeSidebarForDifferences(changedElement) {
badgeValue += 1; badgeValue += 1;
// add a reason to restart // add a reason to restart
if(description && description.restart) { if(description && description.restart != false) {
reasonsForRestart.push(setting); reasonsForRestart.push(setting);
} }
} else { } else {
// remove a reason to restart // remove a reason to restart
if(description && description.restart) { if(description && description.restart != false) {
reasonsForRestart = $.grep(reasonsForRestart, function(v) { return v != setting; }); reasonsForRestart = $.grep(reasonsForRestart, function(v) { return v != setting; });
} }
} }