Add the reload button to the page notifications so that users can see the UI changes (#1510)

This commit is contained in:
Alex Tselegidis 2024-04-26 17:03:00 +02:00
parent cc9a0515d2
commit 2d8788c4ff

View file

@ -104,14 +104,18 @@ App.Pages.GeneralSettings = (function () {
function onSaveSettingsClick() { function onSaveSettingsClick() {
if (isInvalid()) { if (isInvalid()) {
App.Layouts.Backend.displayNotification(lang('settings_are_invalid')); App.Layouts.Backend.displayNotification(lang('settings_are_invalid'));
return; return;
} }
const generalSettings = serialize(); const generalSettings = serialize();
App.Http.GeneralSettings.save(generalSettings).done(() => { 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(),
},
]);
}); });
} }