mirror of
https://github.com/zulip/zulip-desktop.git
synced 2025-11-09 08:25:44 +00:00
webview: Add "role" key to webview property.
This commit is contained in:
committed by
Akash Nimare
parent
d99c29301e
commit
43840a5245
@@ -186,6 +186,7 @@ class ServerManagerView {
|
|||||||
index,
|
index,
|
||||||
tabIndex,
|
tabIndex,
|
||||||
url: server.url,
|
url: server.url,
|
||||||
|
role: 'server',
|
||||||
name: CommonUtil.decodeString(server.alias),
|
name: CommonUtil.decodeString(server.alias),
|
||||||
isActive: () => {
|
isActive: () => {
|
||||||
return index === this.activeTabIndex;
|
return index === this.activeTabIndex;
|
||||||
@@ -337,6 +338,7 @@ class ServerManagerView {
|
|||||||
index: this.functionalTabs[tabProps.name],
|
index: this.functionalTabs[tabProps.name],
|
||||||
tabIndex,
|
tabIndex,
|
||||||
url: tabProps.url,
|
url: tabProps.url,
|
||||||
|
role: 'function',
|
||||||
name: tabProps.name,
|
name: tabProps.name,
|
||||||
isActive: () => {
|
isActive: () => {
|
||||||
return this.functionalTabs[tabProps.name] === this.activeTabIndex;
|
return this.functionalTabs[tabProps.name] === this.activeTabIndex;
|
||||||
|
|||||||
Reference in New Issue
Block a user