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:
committed by
konrad
parent
e9a932e0f0
commit
abb4126bce
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user