forked from vikunja/vikunja
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 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()
|
||||
|
|
Loading…
Reference in New Issue
Block a user