mirror of
https://github.com/BinaryAlley/Nemera.git
synced 2026-12-01 18:57:24 +00:00
Merge pull request #271 from BinaryAlley/bugfix/fix-post-save-navigation-on-library-form
Fixes post-save navigation on the library form
This commit is contained in:
1 file changed
+7
-6
@@ -493,14 +493,15 @@
|
|||||||
await handleAddMediaLibraryAsync();
|
await handleAddMediaLibraryAsync();
|
||||||
};
|
};
|
||||||
|
|
||||||
// On back to libraries button click.
|
// On back to libraries button click, navigates in place through the shared AJAX navigator instead of reloading the whole page.
|
||||||
const handleBtnBackToLibrariesClick = function() {
|
const handleBtnBackToLibrariesClick = async function() {
|
||||||
window.location.href = '@_urlService.GetAbsoluteUrl(WebRoutes.LibraryManagement.INDEX)';
|
await updateContentAsync('@_urlService.GetAbsoluteUrl(WebRoutes.LibraryManagement.INDEX)', true);
|
||||||
};
|
};
|
||||||
|
|
||||||
// On add new library button click.
|
// On add new library button click, navigates to the add library page through the shared AJAX navigator. The route of the add page is
|
||||||
const handleBtnAddNewLibraryClick = function() {
|
// used, not the edit route template, which still contains the Id placeholder of the library being edited.
|
||||||
window.location.href = '@_urlService.GetAbsoluteUrl(WebRoutes.LibraryManagement.EDIT_LIBRARY)';
|
const handleBtnAddNewLibraryClick = async function() {
|
||||||
|
await updateContentAsync('@_urlService.GetAbsoluteUrl(WebRoutes.LibraryManagement.ADD_LIBRARY)', true);
|
||||||
};
|
};
|
||||||
|
|
||||||
// On add media directory image click.
|
// On add media directory image click.
|
||||||
|
|||||||
Reference in new issue
Block a user