mirror of
https://github.com/zulip/zulip-desktop.git
synced 2025-10-27 01:53:45 +00:00
renderer: Inline FunctionalTabProps type.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
@@ -24,12 +24,6 @@ import "./tray";
|
|||||||
|
|
||||||
const {session, app, Menu, dialog} = remote;
|
const {session, app, Menu, dialog} = remote;
|
||||||
|
|
||||||
interface FunctionalTabProps {
|
|
||||||
name: string;
|
|
||||||
materialIcon: string;
|
|
||||||
url: string;
|
|
||||||
}
|
|
||||||
|
|
||||||
type WebviewListener =
|
type WebviewListener =
|
||||||
| "webview-reload"
|
| "webview-reload"
|
||||||
| "back"
|
| "back"
|
||||||
@@ -532,7 +526,11 @@ class ServerManagerView {
|
|||||||
this.$serverIconTooltip[index].style.display = "none";
|
this.$serverIconTooltip[index].style.display = "none";
|
||||||
}
|
}
|
||||||
|
|
||||||
openFunctionalTab(tabProps: FunctionalTabProps): void {
|
openFunctionalTab(tabProps: {
|
||||||
|
name: string;
|
||||||
|
materialIcon: string;
|
||||||
|
url: string;
|
||||||
|
}): void {
|
||||||
if (this.functionalTabs.has(tabProps.name)) {
|
if (this.functionalTabs.has(tabProps.name)) {
|
||||||
this.activateTab(this.functionalTabs.get(tabProps.name)!);
|
this.activateTab(this.functionalTabs.get(tabProps.name)!);
|
||||||
return;
|
return;
|
||||||
|
|||||||
Reference in New Issue
Block a user