diff options
author | Christopher Ng <chrng8@gmail.com> | 2021-11-29 20:33:03 +0000 |
---|---|---|
committer | nextcloud-command <nextcloud-command@users.noreply.github.com> | 2021-11-29 20:46:34 +0000 |
commit | 408e4a1983a8d1618ef95661d385abda360543d5 (patch) | |
tree | 8c17491f29cd82d3d59c9d5dce65ff5d148a8c8a /core/src | |
parent | 393ea920bcf552617ed42b15ed9eed437426d1ed (diff) | |
download | nextcloud-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.vue | 2 |
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) }, |