mirror of
https://github.com/alextselegidis/easyappointments.git
synced 2024-11-25 09:23:08 +03:00
Add the reload button to the page notifications so that users can see the UI changes (#1510)
This commit is contained in:
parent
9ebeb89cb0
commit
d99709f39a
1 changed files with 6 additions and 2 deletions
|
@ -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(),
|
||||||
|
},
|
||||||
|
]);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue