Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix admin navbar consistent options #1018

Merged
merged 9 commits into from
Apr 29, 2024
3 changes: 3 additions & 0 deletions src/legacy/js/functions/_setupFlorence.js
Original file line number Diff line number Diff line change
Expand Up @@ -244,6 +244,9 @@ function setupFlorence() {
} else if (menuItem.hasClass("js-nav-item--reports")) {
window.history.pushState({}, "", "/florence/reports");
viewController('reports');
} else if (menuItem.hasClass("js-nav-item--security")) {
window.history.pushState({}, "", "/florence/security");
viewController('security');
} else if (menuItem.hasClass("js-nav-item--login")) {
viewController('login');
} else if (menuItem.hasClass("js-nav-item--logout")) {
Expand Down
3 changes: 3 additions & 0 deletions src/legacy/js/functions/_viewController.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,9 @@ function viewController(view) {
else if (view === 'reports') {
viewReports();
}
else if (view === 'security') {
window.location.pathname = "/florence/security";
}
else {
// viewController('collections');
window.location.pathname = "/florence";
Expand Down
2 changes: 0 additions & 2 deletions src/legacy/js/functions/_viewPublishDetails.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
const { load } = require("js-yaml");

function viewPublishDetails(collections) {
var manual = "[manual collection]";
var result = {
Expand Down
Loading