mirror of
https://github.com/hcengineering/platform.git
synced 2024-11-25 19:58:30 +03: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> {
|
||||
await this.getWidget().then((widget) => widget.showWidget())
|
||||
await this.getWidget().then(async (widget) => await widget.showWidget())
|
||||
}
|
||||
|
||||
async hideWidget (): Promise<void> {
|
||||
this.widget?.hideWidget()
|
||||
await this.widget?.hideWidget()
|
||||
}
|
||||
|
||||
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 {
|
||||
|
@ -48,9 +48,9 @@ export interface SupportClient {
|
||||
export interface SupportWidget {
|
||||
configure: (config: SupportWidgetConfig) => void
|
||||
|
||||
showWidget: () => void
|
||||
hideWidget: () => void
|
||||
toggleWidget: () => void
|
||||
showWidget: () => Promise<void>
|
||||
hideWidget: () => Promise<void>
|
||||
toggleWidget: () => Promise<void>
|
||||
|
||||
destroy: () => void
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user