7676
7777 <!-- text attachments not in page list -->
7878 <div v-if =" notEmbeddedAttachments.length" >
79- <div class =" attachment-list-subheading" >
79+ <div v-if = " editorApiAttachments " class =" attachment-list-subheading" >
8080 <div >
8181 {{ t('collectives', 'Not in page') }}
8282 </div >
@@ -174,6 +174,7 @@ import AttachmentItem from './AttachmentItem.vue'
174174import AttachmentRenameDialog from ' ./AttachmentRenameDialog.vue'
175175import OfflineContent from ' ./OfflineContent.vue'
176176import { useNetworkState } from ' ../../composables/useNetworkState.ts'
177+ import { editorApiAttachments } from ' ../../constants.js'
177178import { useCollectivesStore } from ' ../../stores/collectives.js'
178179import { usePagesStore } from ' ../../stores/pages.js'
179180import { useRootStore } from ' ../../stores/root.js'
@@ -210,7 +211,7 @@ export default {
210211 },
211212
212213 computed: {
213- ... mapState (useRootStore, [' loading' ]),
214+ ... mapState (useRootStore, [' editorApiFlags ' , ' loading' ]),
214215
215216 ... mapState (useCollectivesStore, [' currentCollectiveCanEdit' ]),
216217
@@ -224,6 +225,10 @@ export default {
224225 ' deletedAttachments' ,
225226 ]),
226227
228+ editorApiAttachments () {
229+ return this .editorApiFlags .includes (editorApiAttachments)
230+ },
231+
227232 noAttachmentsDescription () {
228233 return t (' collectives' , ' Add attachments using drag and drop or via "Insert attachment" in the formatting menu.' )
229234 },
0 commit comments