From d99709f39af347be1f05d85e6a7ff7ddd093dd80 Mon Sep 17 00:00:00 2001 From: Alex Tselegidis Date: Fri, 26 Apr 2024 17:03:00 +0200 Subject: [PATCH] Add the reload button to the page notifications so that users can see the UI changes (#1510) --- assets/js/pages/general_settings.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/assets/js/pages/general_settings.js b/assets/js/pages/general_settings.js index e0e7bbca..751c74b2 100644 --- a/assets/js/pages/general_settings.js +++ b/assets/js/pages/general_settings.js @@ -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(), + }, + ]); }); }