Skip to content

Commit e298d7a

Browse files
committed
fix(AttachmentItem): don't offer "add to page" for folder attachments
Signed-off-by: Jonas <jonas@freesources.org>
1 parent cbba93e commit e298d7a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/components/PageSidebar/AttachmentItem.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
{{ t('collectives', 'View in page') }}
4040
</NcActionButton>
4141
<NcActionButton
42-
v-if="!isEmbedded && !isDeleted && currentCollectiveCanEdit"
42+
v-if="!isEmbedded && !isDeleted && !isInFolder && isTextEdit && currentCollectiveCanEdit"
4343
:close-after-click="true"
4444
@click="onInsert">
4545
<template #icon>

0 commit comments

Comments
 (0)