Skip to content

Commit

Permalink
Merge branch 'feat/modalimg' of https://github.com/weni-ai/commerce-w…
Browse files Browse the repository at this point in the history
…ebapp into staging
  • Loading branch information
acnormun committed Oct 10, 2024
2 parents 6de1e42 + 720a77a commit b6d309d
Showing 1 changed file with 10 additions and 22 deletions.
32 changes: 10 additions & 22 deletions src/components/solutions/ModalIntegrate.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
<template>
{{ uuid }}
<UnnnicModalDialog
v-if="images[uuid]"
v-model="modelValue"
class="modal-integrate-solution"
:showCloseIcon="true"
>
Expand Down Expand Up @@ -90,33 +92,19 @@ const props = defineProps<{
const emit = defineEmits<{
close: [];
integrate: [];
edit: [];
}>();
const buttonProps =
props.status === 'available'
? {
class: 'modal-integrate-solution__integrate-button',
text: t('solutions.integrate.button_label'),
size: 'large',
'data-test': 'integrate-button',
}
: props.status === 'integrated'
? {
class: 'modal-integrate-solution__edit-button',
text: t('solutions.details.view_settings'),
size: 'large',
'data-test': 'edit-button',
}
: {};
const buttonProps = {
class: 'modal-integrate-solution__integrate-button',
text: t('solutions.integrate.button_label'),
size: 'large',
'data-test': 'integrate-button',
};
function emitValue() {
modelValue.value = false;
if (props.status === 'available') {
emit('integrate');
} else if (props.status === 'integrated') {
emit('edit');
}
emit('close');
emit('integrate');
}
const images: Record<string, string> = {
Expand Down

0 comments on commit b6d309d

Please sign in to comment.