Reload cover resources when the database has been updated

This commit is contained in:
emeric
2020-11-24 08:48:37 +01:00
parent f6b8a01fb4
commit 6fca5d4d4e
34 changed files with 348 additions and 299 deletions
+2 -2
View File
@@ -514,7 +514,7 @@ SettingsView::refreshView()
if (LmsApp->getUser()->isDemo())
{
LmsApp->notifyMsg(MsgType::Warning, Wt::WString::tr("Lms.Settings.demo-cannot-save"));
LmsApp->notifyMsg(LmsApplication::MsgType::Warning, Wt::WString::tr("Lms.Settings.demo-cannot-save"));
return;
}
}
@@ -524,7 +524,7 @@ SettingsView::refreshView()
if (model->validate())
{
model->saveData();
LmsApp->notifyMsg(MsgType::Success, Wt::WString::tr("Lms.Settings.settings-saved"));
LmsApp->notifyMsg(LmsApplication::MsgType::Success, Wt::WString::tr("Lms.Settings.settings-saved"));
}
// Udate the view: Delete any validation message in the view, etc.