mirror of
https://github.com/nextcloud/server.git
synced 2026-06-08 16:26:59 -04:00
Merge pull request #49419 from nextcloud/backport/49380/stable30
This commit is contained in:
commit
688d69e54d
3 changed files with 16 additions and 4 deletions
|
|
@ -277,7 +277,12 @@ export default defineComponent({
|
|||
},
|
||||
|
||||
pageHeading(): string {
|
||||
return this.currentView?.name ?? t('files', 'Files')
|
||||
const title = this.currentView?.name ?? t('files', 'Files')
|
||||
|
||||
if (this.currentFolder === undefined || this.directory === '/') {
|
||||
return title
|
||||
}
|
||||
return `${this.currentFolder.displayname} - ${title}`
|
||||
},
|
||||
|
||||
/**
|
||||
|
|
@ -426,6 +431,13 @@ export default defineComponent({
|
|||
},
|
||||
|
||||
watch: {
|
||||
/**
|
||||
* Update the window title to match the page heading
|
||||
*/
|
||||
pageHeading() {
|
||||
document.title = `${this.pageHeading} - ${getCapabilities().theming?.productName ?? 'Nextcloud'}`
|
||||
},
|
||||
|
||||
/**
|
||||
* Handle rendering the custom empty view
|
||||
* @param show The current state if the custom empty view should be rendered
|
||||
|
|
|
|||
4
dist/files-main.js
vendored
4
dist/files-main.js
vendored
File diff suppressed because one or more lines are too long
2
dist/files-main.js.map
vendored
2
dist/files-main.js.map
vendored
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue