mirror of
https://github.com/Microsoft/vscode
synced 2024-11-05 18:29:38 +00:00
hide profile badge on activity
This commit is contained in:
parent
54d7e73966
commit
aeec9b1fc4
1 changed files with 10 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue