3434 </template >
3535 {{ t('text', 'Insert from Files') }}
3636 </NcActionButton >
37- <NcActionButton v-for =" (template , index ) in templates "
38- :key =" ` ${template .app }-${index } ` "
39- close-after-click
40- :disabled =" isUploadingAttachments "
41- :data-text-action-entry =" ` ${actionEntry .key }-add-${template .app }-${index } ` "
42- @click =" createAttachment (template )" >
43- <template #icon >
44- <NcIconSvgWrapper v-if =" template .iconSvgInline " :svg =" template .iconSvgInline " />
45- <Plus v-else />
46- </template >
47- {{ template.actionLabel }}
48- </NcActionButton >
37+ <template v-if =" templates .length " >
38+ <NcActionSeparator />
39+ <NcActionButton v-for =" (template , index ) in templates "
40+ :key =" ` ${template .app }-${index } ` "
41+ close-after-click
42+ :disabled =" isUploadingAttachments "
43+ :data-text-action-entry =" ` ${actionEntry .key }-add-${template .app }-${index } ` "
44+ @click =" createAttachment (template )" >
45+ <template #icon >
46+ <NcIconSvgWrapper v-if =" template .iconSvgInline " :svg =" template .iconSvgInline " />
47+ <Plus v-else />
48+ </template >
49+ {{ template.actionLabel }}
50+ </NcActionButton >
51+ </template >
4952 </NcActions >
5053</template >
5154
5255<script >
53- import { NcActions , NcActionButton , NcIconSvgWrapper } from ' @nextcloud/vue'
56+ import { NcActions , NcActionSeparator , NcActionButton , NcIconSvgWrapper } from ' @nextcloud/vue'
5457import { loadState } from ' @nextcloud/initial-state'
5558import { Loading , Folder , Upload , Plus } from ' ../icons.js'
5659import { useIsPublicMixin , useEditorUpload } from ' ../Editor.provider.js'
@@ -67,6 +70,7 @@ export default {
6770 name: ' ActionAttachmentUpload' ,
6871 components: {
6972 NcActions,
73+ NcActionSeparator,
7074 NcActionButton,
7175 NcIconSvgWrapper,
7276 Loading,
0 commit comments