Merge pull request #29872 from nextcloud/enh/28139/profile-page-title

Set profile page title
This commit is contained in:
Louis 2021-11-30 10:19:33 +01:00 committed by GitHub
commit 85ec381757
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 3 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View file

@ -264,6 +264,8 @@ export default {
},
mounted() {
// Set the user's displayname or userId in the page title and preserve the default title of "Nextcloud" at the end
document.title = `${this.displayname || this.userId} - ${document.title}`
subscribe('user_status:status.updated', this.handleStatusUpdate)
},