feat: show welcome screen on first login

This commit is contained in:
Carlos Valente
2024-11-22 21:57:30 +01:00
committed by Carlos Valente
parent 7bf90d669a
commit 22fe65c655
9 changed files with 327 additions and 0 deletions
+8
View File
@@ -12,6 +12,7 @@ import {
setClientRedirect,
setClients,
} from '../stores/clientStore';
import { addDialog } from '../stores/dialogStore';
import { addLog } from '../stores/logger';
import { patchRuntime, runtimeStore } from '../stores/runtime';
@@ -118,6 +119,13 @@ export const connectSocket = () => {
break;
}
case 'dialog': {
if (payload.dialog === 'welcome') {
addDialog('welcome');
}
break;
}
case 'ontime-log': {
addLog(payload as Log);
break;