Merge pull request #10788 from seefo/fb5533

Fixed a bug where restart modal was shown when it shouldn't be
This commit is contained in:
Stephen Birarda 2017-06-22 14:44:19 -07:00 committed by GitHub
commit 07ccf13ca9

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();