mirror of
https://github.com/alextselegidis/easyappointments.git
synced 2024-11-29 03:12:39 +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
cc9a0515d2
commit
2d8788c4ff
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