mirror of
https://github.com/hcengineering/platform.git
synced 2025-06-06 07:46:32 +00:00
UBER-690 Move user token generation to backend (#3604)
This commit is contained in:
parent
14104a0984
commit
348f7f4384
@ -79,15 +79,15 @@ class SupportClientImpl implements SupportClient {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async showWidget (): Promise<void> {
|
async showWidget (): Promise<void> {
|
||||||
await this.getWidget().then((widget) => widget.showWidget())
|
await this.getWidget().then(async (widget) => await widget.showWidget())
|
||||||
}
|
}
|
||||||
|
|
||||||
async hideWidget (): Promise<void> {
|
async hideWidget (): Promise<void> {
|
||||||
this.widget?.hideWidget()
|
await this.widget?.hideWidget()
|
||||||
}
|
}
|
||||||
|
|
||||||
async toggleWidget (): Promise<void> {
|
async toggleWidget (): Promise<void> {
|
||||||
await this.getWidget().then((widget) => widget.toggleWidget())
|
await this.getWidget().then(async (widget) => await widget.toggleWidget())
|
||||||
}
|
}
|
||||||
|
|
||||||
private updateWidgetConfig (config: SupportWidgetConfig): void {
|
private updateWidgetConfig (config: SupportWidgetConfig): void {
|
||||||
|
@ -48,9 +48,9 @@ export interface SupportClient {
|
|||||||
export interface SupportWidget {
|
export interface SupportWidget {
|
||||||
configure: (config: SupportWidgetConfig) => void
|
configure: (config: SupportWidgetConfig) => void
|
||||||
|
|
||||||
showWidget: () => void
|
showWidget: () => Promise<void>
|
||||||
hideWidget: () => void
|
hideWidget: () => Promise<void>
|
||||||
toggleWidget: () => void
|
toggleWidget: () => Promise<void>
|
||||||
|
|
||||||
destroy: () => void
|
destroy: () => void
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user