mirror of
https://github.com/outline/outline.git
synced 2026-11-22 05:51:43 +03:00
fix: Ensure initials on avatars are always displayed uppercase
This commit is contained in:
1 parent
ea97963feb
commit
caafdb2fe7
3 files changed
+3
-3
No files matched your search
@@ -133,7 +133,7 @@ export default class Collection extends ParanoidModel {
|
||||
*/
|
||||
@computed
|
||||
get initial() {
|
||||
return this.name ? this.name[0] : "?";
|
||||
return (this.name ? this.name[0] : "?").toUpperCase();
|
||||
}
|
||||
|
||||
fetchDocuments = async (options?: { force: boolean }) => {
|
||||
|
||||
+1
-1
@@ -80,7 +80,7 @@ class Team extends Model {
|
||||
|
||||
@computed
|
||||
get initial(): string {
|
||||
return this.name ? this.name[0] : "?";
|
||||
return (this.name ? this.name[0] : "?").toUpperCase();
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
+1
-1
@@ -61,7 +61,7 @@ class User extends ParanoidModel {
|
||||
|
||||
@computed
|
||||
get initial(): string {
|
||||
return this.name ? this.name[0] : "?";
|
||||
return (this.name ? this.name[0] : "?").toUpperCase();
|
||||
}
|
||||
|
||||
@computed
|
||||
|
||||
Reference in new issue
Block a user