logout functionality

This commit is contained in:
Jan Prochazka
2022-03-21 20:54:40 +01:00
parent 26881a3e39
commit 77612cc6fb
3 changed files with 20 additions and 0 deletions

View File

@@ -486,6 +486,16 @@ registerCommand({
onClick: () => getElectron().send('close-window'),
});
registerCommand({
id: 'app.logout',
category: 'App',
name: 'Logout',
testEnabled: () => getCurrentConfig()?.login != null,
onClick: () => {
window.location.href = 'config/logout';
},
});
export function registerFileCommands({
idPrefix,
category,