preferences page title

This commit is contained in:
Yuri Kuznetsov
2024-08-29 09:35:09 +03:00
parent 62a6c2761f
commit 39898bbbe8
+10
View File
@@ -44,4 +44,14 @@ export default class extends EditView {
$('<span>').text(this.userName),
]);
}
updatePageTitle() {
let title = this.getLanguage().translate(this.scope, 'scopeNames');
if (this.model.id !== this.getUser().id && this.userName) {
title += ' · ' + this.userName;
}
this.setPageTitle(title);
}
}