fix(project): show "remove background" button only when the project has a background set

This commit is contained in:
kolaente 2024-05-07 17:17:06 +02:00
parent cf46c76811
commit 272f643955
Signed by untrusted user: konrad
GPG Key ID: F40E70337AB24C9B

View File

@ -162,7 +162,7 @@ const configStore = useConfigStore()
const unsplashBackgroundEnabled = computed(() => configStore.enabledBackgroundProviders.includes('unsplash'))
const uploadBackgroundEnabled = computed(() => configStore.enabledBackgroundProviders.includes('upload'))
const currentProject = computed(() => baseStore.currentProject)
const hasBackground = computed(() => baseStore.background !== null)
const hasBackground = computed(() => !!currentProject.value.backgroundInformation)
// Show the default collection of backgrounds
newBackgroundSearch()