functional-tab: Split ‘name’ into ‘page’ and ‘label’.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
Anders Kaseorg
2024-12-02 13:53:08 -08:00
parent 105e7e93a1
commit 467e7b11c5
7 changed files with 39 additions and 28 deletions

View File

@@ -49,7 +49,7 @@ export default class ServerTab extends Tab {
return html`
<div class="tab" data-tab-id="${this.properties.tabIndex}">
<div class="server-tooltip" style="display:none">
${this.properties.name}
${this.properties.label}
</div>
<div class="server-tab-badge"></div>
<div class="server-tab">
@@ -60,9 +60,9 @@ export default class ServerTab extends Tab {
`;
}
setName(name: string): void {
this.properties.name = name;
this.$name.textContent = name;
setLabel(label: string): void {
this.properties.label = label;
this.$name.textContent = label;
}
setIcon(icon: string): void {