mirror of
https://github.com/alextselegidis/easyappointments.git
synced 2024-12-27 09:03:09 +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() {
|
||||
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(),
|
||||
},
|
||||
]);
|
||||
});
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue