Skip to content

Commit ad56176

Browse files
Pytalnextcloud-command
authored andcommitted
Set profile page title
Signed-off-by: Christopher Ng <chrng8@gmail.com> Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
1 parent 9c05dfa commit ad56176

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

core/js/dist/profile.js

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

core/js/dist/profile.js.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

core/src/views/Profile.vue

+2
Original file line numberDiff line numberDiff line change
@@ -264,6 +264,8 @@ export default {
264264
},
265265

266266
mounted() {
267+
// Set the user's displayname or userId in the page title and preserve the default title of "Nextcloud" at the end
268+
document.title = `${this.displayname || this.userId} - ${document.title}`
267269
subscribe('user_status:status.updated', this.handleStatusUpdate)
268270
},
269271

0 commit comments

Comments
 (0)