fix: change font
This commit is contained in:
+5
-3
@@ -17,9 +17,11 @@ function landingPath(): string {
|
||||
}
|
||||
|
||||
function fallbackLocation() {
|
||||
const auth = useAuthStore()
|
||||
const last = localStorage.getItem('mws_last_project')
|
||||
if (last) return { name: 'tasks-board', params: { id: last } }
|
||||
return landingPath()
|
||||
const canOpenTasks = !auth.menuLoaded || auth.canView('tasks')
|
||||
if (last && canOpenTasks) return { name: 'tasks-board', params: { id: last } }
|
||||
return { name: 'select-project' }
|
||||
}
|
||||
|
||||
const router = createRouter({
|
||||
@@ -91,7 +93,7 @@ router.beforeEach(async (to) => {
|
||||
if (to.meta.adminOnly && !auth.isAdmin) {
|
||||
return fallbackLocation()
|
||||
}
|
||||
if (to.meta.screenKey && !auth.canView(to.meta.screenKey)) {
|
||||
if (to.meta.screenKey && auth.menuLoaded && !auth.canView(to.meta.screenKey)) {
|
||||
return fallbackLocation()
|
||||
}
|
||||
})
|
||||
|
||||
+1
-2
@@ -44,10 +44,9 @@ export const useAuthStore = defineStore('auth', {
|
||||
async loadMenu() {
|
||||
try {
|
||||
this.menu = await getMenu()
|
||||
this.menuLoaded = true
|
||||
} catch {
|
||||
this.menu = []
|
||||
} finally {
|
||||
this.menuLoaded = true
|
||||
}
|
||||
},
|
||||
async fetchProfile() {
|
||||
|
||||
+2
-3
@@ -3,9 +3,8 @@
|
||||
@custom-variant dark (&:where(.app-dark, .app-dark *));
|
||||
|
||||
@theme {
|
||||
/* Display = Bricolage Grotesque (characterful grotesque), body = IBM Plex Sans */
|
||||
--font-sans: 'IBM Plex Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
|
||||
--font-display: 'Bricolage Grotesque', 'IBM Plex Sans', Helvetica, Arial, sans-serif;
|
||||
--font-sans: 'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif;
|
||||
--font-display: 'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif;
|
||||
|
||||
/* Blurple — brand primary, remaps every indigo-* utility */
|
||||
--color-indigo-50: #eef0fe;
|
||||
|
||||
Reference in New Issue
Block a user