Skip to content
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions src/components/Menu/ActionAttachmentUpload.vue
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
:svg="template.iconSvgInline" />
<Plus v-else />
</template>
{{ template.actionLabel }}
{{ template.label }}
</NcActionButton>
</template>
</NcActions>
Expand Down Expand Up @@ -116,7 +116,11 @@ export default {
return this.$uploadingState.isUploadingAttachments
},
templates() {
return loadState('files', 'templates', [])
let templates = loadState('collectives', 'templates', [])
if (!templates.length) {
templates = loadState('files', 'templates', [])
}
return templates
},
isUploadDisabled() {
return !this.openData?.hasOwner || !this.networkOnline
Expand Down
Loading