adasd
This commit is contained in:
9
public/admin/apps/index.php
Normal file
9
public/admin/apps/index.php
Normal file
@@ -0,0 +1,9 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
require_once dirname(__DIR__, 3) . '/src/App/bootstrap.php';
|
||||
|
||||
use App\AppPaths;
|
||||
|
||||
require AppPaths::systemAppPath(dirname(__DIR__, 3), 'admin-apps') . '/page.php';
|
||||
@@ -1970,15 +1970,6 @@ if (payloadNode) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (actionId === 'open-public-dashboard') {
|
||||
const publicDashboard = findAppById('public-dashboard');
|
||||
if (publicDashboard) {
|
||||
openApp(publicDashboard);
|
||||
closeStartMenu();
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
if (actionId === 'toggle-all-widgets') {
|
||||
const shouldShowAll = activeWidgets.size !== payload.widgets.registry.length;
|
||||
|
||||
@@ -2157,10 +2148,7 @@ if (payloadNode) {
|
||||
|
||||
if (action === 'login') {
|
||||
event.preventDefault();
|
||||
const loginApp = findAppById('desktop-login');
|
||||
if (loginApp) {
|
||||
openApp(loginApp);
|
||||
}
|
||||
window.location.href = '/auth/keycloak';
|
||||
setAccountMenuOpen(false);
|
||||
}
|
||||
});
|
||||
@@ -2177,10 +2165,7 @@ if (payloadNode) {
|
||||
}
|
||||
|
||||
event.preventDefault();
|
||||
const loginApp = findAppById('desktop-login');
|
||||
if (loginApp) {
|
||||
openApp(loginApp);
|
||||
}
|
||||
window.location.href = '/auth/keycloak';
|
||||
closeStartMenu();
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user