Skip to content

Commit

Permalink
Merge pull request #591 from weni-ai/feature/custom-breaks-modal
Browse files Browse the repository at this point in the history
[ENGAGE-2716] Add custom breaks modal
  • Loading branch information
MarcusviniciusLsantos authored Feb 10, 2025
2 parents afddd80 + 47d9b4f commit e0da7aa
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@
<script setup>
import { ref, computed } from 'vue';
import i18n from '@/plugins/i18n';
import callUnnnicAlert from '@/utils/callUnnnicAlert';
const showModal = ref(false);
const isLoadingCloseRoom = ref(false);
Expand Down Expand Up @@ -157,6 +158,13 @@ const saveStatus = async () => {
setTimeout(() => {
originalBreaks.value = [...customBreaks.value];
isLoadingCloseRoom.value = false;
callUnnnicAlert({
props: {
text: i18n.global.t('config_chats.custom_breaks.status_success'),
type: 'success',
},
seconds: 5,
});
closeModal();
}, 1000);
};
Expand Down

0 comments on commit e0da7aa

Please sign in to comment.