From 408e4a1983a8d1618ef95661d385abda360543d5 Mon Sep 17 00:00:00 2001 From: Christopher Ng Date: Mon, 29 Nov 2021 20:33:03 +0000 Subject: Set profile page title Signed-off-by: Christopher Ng Signed-off-by: nextcloud-command --- core/src/views/Profile.vue | 2 ++ 1 file changed, 2 insertions(+) (limited to 'core/src') 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) }, -- cgit v1.2.3