Refactor install wizard and mail configuration

This commit is contained in:
Darko Gjorgjijoski
2026-04-09 10:06:27 +02:00
parent 1d2cca5837
commit 9174254165
55 changed files with 3102 additions and 1162 deletions

View File

@@ -0,0 +1,21 @@
import { LS_KEYS } from '@/scripts/config/constants'
import * as localStore from '@/scripts/utils/local-storage'
export function setInstallWizardAuth(token: string, companyId?: number | string | null): void {
localStore.set(LS_KEYS.INSTALL_AUTH_TOKEN, token)
setInstallWizardCompany(companyId)
}
export function setInstallWizardCompany(companyId?: number | string | null): void {
if (companyId === null || companyId === undefined || companyId === '') {
localStore.remove(LS_KEYS.INSTALL_SELECTED_COMPANY)
return
}
localStore.set(LS_KEYS.INSTALL_SELECTED_COMPANY, String(companyId))
}
export function clearInstallWizardAuth(): void {
localStore.remove(LS_KEYS.INSTALL_AUTH_TOKEN)
localStore.remove(LS_KEYS.INSTALL_SELECTED_COMPANY)
}