fix: Hide assistant button when showing Click to connect (#10932)

This commit is contained in:
Mutasem Aldmour
2024-09-23 17:38:35 +02:00
committed by GitHub
parent f96977e6e4
commit d74cff2030
3 changed files with 73 additions and 9 deletions

View File

@@ -177,6 +177,7 @@ const isAskAssistantAvailable = computed(
documentationUrl.value.includes(DOCS_DOMAIN) &&
props.credentialProperties.length &&
props.credentialPermissions.update &&
!(props.isOAuthType && props.requiredPropertiesFilled) &&
assistantStore.isAssistantEnabled,
);
@@ -322,7 +323,7 @@ watch(showOAuthSuccessBanner, (newValue, oldValue) => {
<div
v-if="isAskAssistantAvailable"
:class="$style.askAssistantButton"
data-test-id="credentail-edit-ask-assistant-button"
data-test-id="credential-edit-ask-assistant-button"
>
<InlineAskAssistantButton :asked="assistantAlreadyAsked" @click="onAskAssistantClick" />
<span>for setup instructions</span>