fix: hide icon if description is missing

There might be future general improvements like merging the edit and info modal (since they both show the description, but only in one it's editable.

This PR already improves the situation a bit, since you don't have to click on that info button anymore to check __if__ there is a description at all.
This commit is contained in:
Dominik Pschenitschni
2025-01-14 16:17:09 +01:00
committed by konrad
parent e9a932e0f0
commit abb4126bce

View File

@@ -25,6 +25,7 @@
</h1>
<BaseButton
v-if="!isEditorContentEmpty(currentProject.description)"
:to="{ name: 'project.info', params: { projectId: currentProject.id } }"
class="project-title-button"
>
@@ -124,6 +125,7 @@ import MenuButton from '@/components/home/MenuButton.vue'
import OpenQuickActions from '@/components/misc/OpenQuickActions.vue'
import { getProjectTitle } from '@/helpers/getProjectTitle'
import { isEditorContentEmpty } from '@/helpers/editorContentEmpty'
import { useBaseStore } from '@/stores/base'
import { useConfigStore } from '@/stores/config'