SYNC: Merge pull request #2 from dbgate/feature/admin-ui

This commit is contained in:
Jan Prochazka
2025-04-08 10:09:30 +02:00
committed by Diflow
parent ea9a5b0eb0
commit 7d2130b229
10 changed files with 274 additions and 31 deletions

View File

@@ -619,6 +619,24 @@ registerCommand({
onClick: doLogout,
});
registerCommand({
id: 'app.loggedUserCommands',
category: 'App',
name: 'Logged user',
getSubCommands: () => {
const config = getCurrentConfig();
if (!config) return [];
return [
{
text: 'Logout',
onClick: () => {
doLogout();
},
},
];
},
});
registerCommand({
id: 'app.disconnect',
category: 'App',