Changeset 0.25.4 (#164)
This commit is contained in:
@@ -72,13 +72,15 @@ Object.assign(UI, {
|
||||
|
||||
closeAdmin() {
|
||||
const base = window.__BASE__ || '';
|
||||
window.location.href = base + '/';
|
||||
const returnURL = sessionStorage.getItem('sb_admin_return');
|
||||
sessionStorage.removeItem('sb_admin_return');
|
||||
window.location.href = returnURL || (base + '/');
|
||||
},
|
||||
|
||||
// ── Navigate to specific section ──────────
|
||||
openAdminSection(section) {
|
||||
const base = window.__BASE__ || '';
|
||||
window.location.href = base + '/admin/' + (section || 'users');
|
||||
location.replace(base + '/admin/' + (section || 'users'));
|
||||
},
|
||||
|
||||
// ── Category switch ───────────────────────
|
||||
|
||||
Reference in New Issue
Block a user