fix(project): show "remove background" button only when the project has a background set
This commit is contained in:
parent
cf46c76811
commit
272f643955
@ -162,7 +162,7 @@ const configStore = useConfigStore()
|
|||||||
const unsplashBackgroundEnabled = computed(() => configStore.enabledBackgroundProviders.includes('unsplash'))
|
const unsplashBackgroundEnabled = computed(() => configStore.enabledBackgroundProviders.includes('unsplash'))
|
||||||
const uploadBackgroundEnabled = computed(() => configStore.enabledBackgroundProviders.includes('upload'))
|
const uploadBackgroundEnabled = computed(() => configStore.enabledBackgroundProviders.includes('upload'))
|
||||||
const currentProject = computed(() => baseStore.currentProject)
|
const currentProject = computed(() => baseStore.currentProject)
|
||||||
const hasBackground = computed(() => baseStore.background !== null)
|
const hasBackground = computed(() => !!currentProject.value.backgroundInformation)
|
||||||
|
|
||||||
// Show the default collection of backgrounds
|
// Show the default collection of backgrounds
|
||||||
newBackgroundSearch()
|
newBackgroundSearch()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user