fix: theme switching
This commit is contained in:
@@ -13,6 +13,7 @@
|
|||||||
import { t } from '$lib/utils/functions/translations';
|
import { t } from '$lib/utils/functions/translations';
|
||||||
import { isFreePlan } from '$lib/utils/store/org';
|
import { isFreePlan } from '$lib/utils/store/org';
|
||||||
import { updateOrgNameValidation } from '$lib/utils/functions/validator';
|
import { updateOrgNameValidation } from '$lib/utils/functions/validator';
|
||||||
|
import { setTheme } from '$lib/utils/functions/theme';
|
||||||
|
|
||||||
let avatar;
|
let avatar;
|
||||||
|
|
||||||
@@ -42,6 +43,8 @@
|
|||||||
.concat(!!t ? ' ' : '', t);
|
.concat(!!t ? ' ' : '', t);
|
||||||
$currentOrg.theme = t;
|
$currentOrg.theme = t;
|
||||||
|
|
||||||
|
setTheme(t);
|
||||||
|
|
||||||
const res = await supabase
|
const res = await supabase
|
||||||
.from('organization')
|
.from('organization')
|
||||||
.update({ theme: t })
|
.update({ theme: t })
|
||||||
@@ -63,7 +66,7 @@
|
|||||||
loading = true;
|
loading = true;
|
||||||
|
|
||||||
const updates = {
|
const updates = {
|
||||||
name: $currentOrg.name,
|
name: $currentOrg.name
|
||||||
};
|
};
|
||||||
|
|
||||||
if (avatar) {
|
if (avatar) {
|
||||||
|
|||||||
Reference in New Issue
Block a user