Remove colors
This commit is contained in:
@@ -16,19 +16,6 @@ export const useBrandingStore = defineStore(
|
||||
{},
|
||||
{writeDefaults: false})
|
||||
|
||||
const defaultColors = {
|
||||
"background": "#f4f4f4",
|
||||
"error": "#f4f4f4",
|
||||
"primary": "#f4f4f4",
|
||||
"secondary": "#f4f4f4",
|
||||
"surface": "#f4f4f4",
|
||||
"onBackground": "#000",
|
||||
"onError": "#000",
|
||||
"onPrimary": "#000",
|
||||
"onSecondary": "#000",
|
||||
"onSurface": "#000",
|
||||
}
|
||||
const colors = ref(defaultColors)
|
||||
const presentationInfos = ref([])
|
||||
|
||||
const route = useRoute()
|
||||
@@ -41,12 +28,10 @@ export const useBrandingStore = defineStore(
|
||||
if (newCreator !== undefined) {
|
||||
value.value = await fetchCreatorData(newCreator)
|
||||
currentBrand.value = newCreator
|
||||
colors.value = value.value?.colors
|
||||
presentationInfos.value = value.value?.presentationInfos
|
||||
} else {
|
||||
value.value = {}
|
||||
currentBrand.value = undefined
|
||||
colors.value = defaultColors
|
||||
presentationInfos.value = []
|
||||
}
|
||||
}
|
||||
@@ -68,7 +53,6 @@ export const useBrandingStore = defineStore(
|
||||
return {
|
||||
currentBrand,
|
||||
value,
|
||||
colors,
|
||||
loading,
|
||||
presentationInfos
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user