summaryrefslogtreecommitdiffstats
path: root/core/src
diff options
context:
space:
mode:
authorChristopher Ng <chrng8@gmail.com>2021-11-29 20:33:03 +0000
committernextcloud-command <nextcloud-command@users.noreply.github.com>2021-11-29 20:46:34 +0000
commit408e4a1983a8d1618ef95661d385abda360543d5 (patch)
tree8c17491f29cd82d3d59c9d5dce65ff5d148a8c8a /core/src
parent393ea920bcf552617ed42b15ed9eed437426d1ed (diff)
downloadnextcloud-server-408e4a1983a8d1618ef95661d385abda360543d5.tar.gz
nextcloud-server-408e4a1983a8d1618ef95661d385abda360543d5.zip
Set profile page title
Signed-off-by: Christopher Ng <chrng8@gmail.com> Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
Diffstat (limited to 'core/src')
-rw-r--r--core/src/views/Profile.vue2
1 files changed, 2 insertions, 0 deletions
diff --git a/core/src/views/Profile.vue b/core/src/views/Profile.vue
index 0d855fc38cc..c81f214c7ae 100644
--- a/core/src/views/Profile.vue
+++ b/core/src/views/Profile.vue
@@ -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)
},