hide profile badge on activity

This commit is contained in:
Sandeep Somavarapu 2023-02-17 18:16:24 +01:00
parent 54d7e73966
commit aeec9b1fc4
No known key found for this signature in database
GPG key ID: DD41CAAC8081CC7D

View file

@ -375,7 +375,7 @@ export class GlobalActivityActionViewItem extends MenuActivityActionViewItem {
this.updateProfileBadge();
}
protected updateProfileBadge(): void {
private updateProfileBadge(): void {
if (!this.profileBadge || !this.profileBadgeContent) {
return;
}
@ -387,10 +387,19 @@ export class GlobalActivityActionViewItem extends MenuActivityActionViewItem {
return;
}
if ((this.action as ActivityAction).getBadge()) {
return;
}
this.profileBadgeContent.textContent = this.userDataProfileService.currentProfile.name.substring(0, 2).toUpperCase();
show(this.profileBadge);
}
protected override updateBadge(): void {
super.updateBadge();
this.updateProfileBadge();
}
protected override computeTitle(): string {
return this.userDataProfileService.currentProfile.isDefault ? super.computeTitle() : localize('manage', "Manage {0} (Profile)", this.userDataProfileService.currentProfile.name);
}