File tree Expand file tree Collapse file tree 1 file changed +13
-1
lines changed
Expand file tree Collapse file tree 1 file changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -301,7 +301,12 @@ export default defineComponent({
301301 },
302302
303303 pageHeading(): string {
304- return this .currentView ?.name ?? t (' files' , ' Files' )
304+ const title = this .currentView ?.name ?? t (' files' , ' Files' )
305+
306+ if (this .currentFolder === undefined || this .directory === ' /' ) {
307+ return title
308+ }
309+ return ` ${this .currentFolder .displayname } - ${title } `
305310 },
306311
307312 /**
@@ -467,6 +472,13 @@ export default defineComponent({
467472 },
468473
469474 watch: {
475+ /**
476+ * Update the window title to match the page heading
477+ */
478+ pageHeading() {
479+ document .title = ` ${this .pageHeading } - ${getCapabilities ().theming ?.productName ?? ' Nextcloud' } `
480+ },
481+
470482 /**
471483 * Handle rendering the custom empty view
472484 * @param show The current state if the custom empty view should be rendered
You can’t perform that action at this time.
0 commit comments