Skip to content

Commit

Permalink
Add the reload button to the page notifications so that users can see…
Browse files Browse the repository at this point in the history
… the UI changes (#1510)
  • Loading branch information
alextselegidis committed Apr 26, 2024
1 parent cc9a051 commit 2d8788c
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions assets/js/pages/general_settings.js
Expand Up @@ -104,14 +104,18 @@ App.Pages.GeneralSettings = (function () {
function onSaveSettingsClick() {
if (isInvalid()) {
App.Layouts.Backend.displayNotification(lang('settings_are_invalid'));

return;
}

const generalSettings = serialize();

App.Http.GeneralSettings.save(generalSettings).done(() => {
App.Layouts.Backend.displayNotification(lang('settings_saved'));
App.Layouts.Backend.displayNotification(lang('settings_saved'), [
{
label: lang('reload'), // Reload Page
function: () => window.location.reload(),
},
]);
});
}

Expand Down

0 comments on commit 2d8788c

Please sign in to comment.