Skip to content

Commit

Permalink
Merge pull request #331 from weni-ai/feat/disabled-button-on-create-c…
Browse files Browse the repository at this point in the history
…hannel-whatsapp

feat: disable button on create whatsapp channel
  • Loading branch information
sthefanisilveira authored Sep 20, 2023
2 parents 93f2e02 + e3e0f93 commit 8032c96
Show file tree
Hide file tree
Showing 15 changed files with 158 additions and 156 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"dependencies": {
"@sentry/integrations": "^6.13.2",
"@sentry/vue": "^6.13.2",
"@weni/unnnic-system": "^1.16.41",
"@weni/unnnic-system": "^1.16.51",
"axios": "0.21.1",
"core-js": "^3.6.5",
"global": "^4.4.0",
Expand Down
4 changes: 2 additions & 2 deletions src/components/config/channels/whatsapp/Setup.vue
Original file line number Diff line number Diff line change
Expand Up @@ -71,13 +71,13 @@
:text="$t('WhatsAppCloud.config.phone_numbers.connect_later')"
@click="closePopUp"
></unnnic-button>

<!-- eslint-disable -->
<LoadingButton
class="phone-number-selection__buttons__save"
type="terciary"
size="large"
:disabled="
loadingPhoneNumbers || loadingDebugToken || !!errorDebugToken || !!errorPhoneNumbers
loadingPhoneNumbers || loadingDebugToken || !!errorDebugToken || !!errorPhoneNumbers || loadingWhatsAppCloudConfigure
"
:isLoading="loadingWhatsAppCloudConfigure"
:loadingText="$t('general.loading')"
Expand Down
120 changes: 60 additions & 60 deletions tests/unit/specs/components/__snapshots__/OnboardModal.spec.js.snap

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions tests/unit/specs/components/__snapshots__/Survey.spec.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,15 @@ exports[`components/Survey.vue should be rendered properly with content open 1`]
</div>
<!---->
</div>
<div class="survey__content__buttons"><button data-v-c21b2f22="" class="survey__content__buttons__exit unnnic-button unnnic-button--size-small unnnic-button--terciary unnnic-button-scheme--">
<div class="survey__content__buttons"><button data-v-bcdcecac="" class="survey__content__buttons__exit unnnic-button unnnic-button--size-small unnnic-button--terciary unnnic-button-scheme--">
<!---->
<!---->
<!----><span data-v-c21b2f22="" class="unnnic-button__label"> Exit </span>
<!----><span data-v-bcdcecac="" class="unnnic-button__label"> Exit </span>
<!---->
</button> <button data-v-c21b2f22="" class="survey__content__buttons__send unnnic-button unnnic-button--size-small unnnic-button--secondary unnnic-button-scheme--">
</button> <button data-v-bcdcecac="" class="survey__content__buttons__send unnnic-button unnnic-button--size-small unnnic-button--secondary unnnic-button-scheme--">
<!---->
<!---->
<!----><span data-v-c21b2f22="" class="unnnic-button__label"> Send </span>
<!----><span data-v-bcdcecac="" class="unnnic-button__label"> Send </span>
<!---->
</button></div>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,15 @@ exports[`components/config/channels/generic/Config.vue should be rendered proper
<div class="app-config-generic__settings__content">
<div class="app-config-generic__settings__content__form-loading"><span class="unnnic-skeleton" style="background-color: rgb(232, 244, 244); animation: SkeletonLoading 1.5s ease-in-out infinite; width: 100%; height: 100%;">‌</span></div>
</div>
<div class="app-config-generic__settings__buttons"><button data-v-c21b2f22="" class="app-config-generic__settings__buttons__cancel unnnic-button unnnic-button--size-large unnnic-button--terciary unnnic-button-scheme--">
<div class="app-config-generic__settings__buttons"><button data-v-bcdcecac="" class="app-config-generic__settings__buttons__cancel unnnic-button unnnic-button--size-large unnnic-button--terciary unnnic-button-scheme--">
<!---->
<!---->
<!----><span data-v-c21b2f22="" class="unnnic-button__label"> Cancel </span>
<!----><span data-v-bcdcecac="" class="unnnic-button__label"> Cancel </span>
<!---->
</button> <button data-v-c21b2f22="" class="app-config-generic__settings__buttons__save unnnic-button unnnic-button--size-large unnnic-button--secondary unnnic-button-scheme--">
</button> <button data-v-bcdcecac="" class="app-config-generic__settings__buttons__save unnnic-button unnnic-button--size-large unnnic-button--secondary unnnic-button-scheme--">
<!---->
<!---->
<!----><span data-v-c21b2f22="" class="unnnic-button__label"> Save changes </span>
<!----><span data-v-bcdcecac="" class="unnnic-button__label"> Save changes </span>
<!---->
</button></div>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,15 +66,15 @@ exports[`components/config/channels/whatsapp/components/tabs/WebhookTab.vue shou
</div>
</div>
</div>
<div class="webhook-info__buttons"><button data-v-c21b2f22="" class="webhook-info__buttons__cancel unnnic-button unnnic-button--size-large unnnic-button--terciary unnnic-button-scheme--">
<div class="webhook-info__buttons"><button data-v-bcdcecac="" class="webhook-info__buttons__cancel unnnic-button unnnic-button--size-large unnnic-button--terciary unnnic-button-scheme--">
<!---->
<!---->
<!----><span data-v-c21b2f22="" class="unnnic-button__label"> Configure later </span>
<!----><span data-v-bcdcecac="" class="unnnic-button__label"> Configure later </span>
<!---->
</button> <button data-v-c21b2f22="" class="webhook-info__buttons__save unnnic-button unnnic-button--size-large unnnic-button--secondary unnnic-button-scheme--">
</button> <button data-v-bcdcecac="" class="webhook-info__buttons__save unnnic-button unnnic-button--size-large unnnic-button--secondary unnnic-button-scheme--">
<!---->
<!---->
<!----><span data-v-c21b2f22="" class="unnnic-button__label"> Save changes </span>
<!----><span data-v-bcdcecac="" class="unnnic-button__label"> Save changes </span>
<!---->
</button></div>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,15 +47,15 @@ exports[`components/config/external/omie/Config.vue should be rendered properly
<div data-v-69271fcc=""></div>
</div>
</div>
<div data-v-69271fcc="" class="app-config-omie__settings__buttons"><button data-v-c21b2f22="" class="app-config-omie__settings__buttons__cancel unnnic-button unnnic-button--size-large unnnic-button--terciary unnnic-button-scheme--" data-v-69271fcc="">
<div data-v-69271fcc="" class="app-config-omie__settings__buttons"><button data-v-bcdcecac="" class="app-config-omie__settings__buttons__cancel unnnic-button unnnic-button--size-large unnnic-button--terciary unnnic-button-scheme--" data-v-69271fcc="">
<!---->
<!---->
<!----><span data-v-c21b2f22="" class="unnnic-button__label"> Cancel </span>
<!----><span data-v-bcdcecac="" class="unnnic-button__label"> Cancel </span>
<!---->
</button> <button data-v-c21b2f22="" class="app-config-omie__settings__buttons__save unnnic-button unnnic-button--size-large unnnic-button--secondary unnnic-button-scheme--" data-v-69271fcc="">
</button> <button data-v-bcdcecac="" class="app-config-omie__settings__buttons__save unnnic-button unnnic-button--size-large unnnic-button--secondary unnnic-button-scheme--" data-v-69271fcc="">
<!---->
<!---->
<!----><span data-v-c21b2f22="" class="unnnic-button__label"> Connect </span>
<!----><span data-v-bcdcecac="" class="unnnic-button__label"> Connect </span>
<!---->
</button></div>
</div>
Expand Down
Loading

0 comments on commit 8032c96

Please sign in to comment.