diff options
Diffstat (limited to 'apps/files/src/views/FilesList.vue')
-rw-r--r-- | apps/files/src/views/FilesList.vue | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/apps/files/src/views/FilesList.vue b/apps/files/src/views/FilesList.vue index 4e80379f632..641dcf78c54 100644 --- a/apps/files/src/views/FilesList.vue +++ b/apps/files/src/views/FilesList.vue @@ -20,7 +20,7 @@ - --> <template> - <NcAppContent data-cy-files-content> + <NcAppContent :page-heading="pageHeading" data-cy-files-content> <div class="files-list__header"> <!-- Current folder breadcrumbs --> <BreadCrumbs :path="dir" @reload="fetchContent"> @@ -225,6 +225,10 @@ export default defineComponent({ return this.$navigation.active || this.$navigation.views.find((view) => view.id === (this.$route.params?.view ?? 'files')) }, + pageHeading(): string { + return this.currentView?.name ?? this.t('files', 'Files') + }, + /** * The current directory query. */ @@ -567,7 +571,7 @@ export default defineComponent({ * Refreshes the current folder on update. * * @param node is the file/folder being updated. - */ + */ onUpdatedNode(node?: Node) { if (node?.fileid === this.currentFolder?.fileid) { this.fetchContent() |