Update account dropdown content to include tenant Id (#20515)

This commit is contained in:
Cheena Malhotra
2022-08-31 13:15:36 -07:00
committed by GitHub
parent 83043dadcc
commit eedf6e01c3
2 changed files with 2 additions and 2 deletions

View File

@@ -284,7 +284,7 @@ export class AccountPicker extends Disposable {
const label = DOM.append(row, DOM.$('div.label')); const label = DOM.append(row, DOM.$('div.label'));
// TODO: Pick between the light and dark logo // TODO: Pick between the light and dark logo
label.innerText = tenant.displayName; label.innerText = tenant.displayName.concat(' (', tenant.id, ')');
} }
return null; return null;
} }

View File

@@ -47,7 +47,7 @@ export class TenantPickerListRenderer implements IListRenderer<Tenant, TenantPic
} }
public renderElement(tenant: Tenant, index: number, templateData: PickerListTemplate): void { public renderElement(tenant: Tenant, index: number, templateData: PickerListTemplate): void {
templateData.displayName.innerText = tenant.displayName; templateData.displayName.innerText = tenant.displayName.concat(' (', tenant.id, ')');
} }
public disposeTemplate(template: PickerListTemplate): void { public disposeTemplate(template: PickerListTemplate): void {