mirror of
https://github.com/windmill-labs/windmill.git
synced 2026-09-04 16:03:06 +00:00
fix(frontend): fix theme make default (#2304)
This commit is contained in:
@@ -59,13 +59,25 @@
|
||||
const theme = await getTheme($workspaceStore!, path)
|
||||
|
||||
await updateTheme($workspaceStore!, DEFAULT_THEME, {
|
||||
value: theme.value
|
||||
value: {
|
||||
value: theme.value ?? '',
|
||||
name: theme.name
|
||||
}
|
||||
})
|
||||
|
||||
await updateTheme($workspaceStore!, path, {
|
||||
value: defaultTheme.value
|
||||
value: {
|
||||
value: defaultTheme.value ?? '',
|
||||
name: defaultTheme.name
|
||||
}
|
||||
})
|
||||
|
||||
stopPreview()
|
||||
$app.theme = {
|
||||
type: 'path',
|
||||
path: DEFAULT_THEME
|
||||
}
|
||||
|
||||
dispatch('reloadThemes')
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user