From d189b46c4796cd4aaab16511fba5c459104072b8 Mon Sep 17 00:00:00 2001 From: dlohvinov Date: Thu, 9 Nov 2023 22:47:55 +0200 Subject: [PATCH] fix: show "close" header icon when chat is popping up over call [WTEL-4027] --- .../wt-omni-widget-window-header.vue | 13 ++++++++++--- .../wt-omni-widget-window/wt-omni-widget-window.vue | 1 + 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/src/app/components/wt-omni-widget-window/wt-omni-widget-window-header/wt-omni-widget-window-header.vue b/src/app/components/wt-omni-widget-window/wt-omni-widget-window-header/wt-omni-widget-window-header.vue index 5a4a92e..c6d9bbb 100644 --- a/src/app/components/wt-omni-widget-window/wt-omni-widget-window-header/wt-omni-widget-window-header.vue +++ b/src/app/components/wt-omni-widget-window/wt-omni-widget-window-header/wt-omni-widget-window-header.vue @@ -13,7 +13,7 @@ >v{{ buildInfo.release }}--{{ buildInfo.build }} state.sessionState, @@ -43,8 +50,8 @@ export default { const { logoUrl } = this.config.view; return logoUrl || WebitelLogo; }, - showCloseBtn() { - return this.callSessionState === SessionState.IDLE; + hideCloseBtn() { + return this.channel === WidgetChannel.CALL && this.callSessionState !== SessionState.IDLE; }, }, methods: { diff --git a/src/app/components/wt-omni-widget-window/wt-omni-widget-window.vue b/src/app/components/wt-omni-widget-window/wt-omni-widget-window.vue index 1e2eaf9..1b423ae 100644 --- a/src/app/components/wt-omni-widget-window/wt-omni-widget-window.vue +++ b/src/app/components/wt-omni-widget-window/wt-omni-widget-window.vue @@ -2,6 +2,7 @@