Fixed a bug where restart modal was shown when it shouldn't be

This commit is contained in:
seefo 2017-06-22 13:35:10 -07:00
parent 86b2382f7c
commit d340c1c68f

View file

@ -424,7 +424,11 @@ function postSettings(jsonSettings) {
type: 'POST'
}).done(function(data){
if (data.status == "success") {
showRestartModal();
if ($(".save-button").html() === SAVE_BUTTON_LABEL_RESTART) {
showRestartModal();
} else {
location.reload(true);
}
} else {
showErrorMessage("Error", SETTINGS_ERROR_MESSAGE)
reloadSettings();