-
-->
<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">
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.
*/
* 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()
import NcAppNavigationItem from '@nextcloud/vue/dist/Components/NcAppNavigationItem.js'
import NcIconSvgWrapper from '@nextcloud/vue/dist/Components/NcIconSvgWrapper.js'
-import { setPageHeading } from '../../../../core/src/OCP/accessibility.js'
import { useViewConfigStore } from '../store/viewConfig.ts'
import logger from '../logger.js'
import NavigationQuota from '../components/NavigationQuota.vue'
// Closing any opened sidebar
window?.OCA?.Files?.Sidebar?.close?.()
this.$navigation.setActive(view)
- setPageHeading(view.name)
emit('files:navigation:changed', view)
},