Skip to content

Commit

Permalink
fix: Calls of UnnnicAlerts
Browse files Browse the repository at this point in the history
  • Loading branch information
Aldemylla committed Oct 19, 2023
1 parent 134edd0 commit fd46e66
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 26 deletions.
1 change: 0 additions & 1 deletion src/components/PreferencesBar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,6 @@ export default {
showStatusAlert(connectionStatus) {
unnnicCallAlert({
props: {
title: ``,
text: `${this.$t('status_agent')} ${connectionStatus}`,
icon: 'indicator',
scheme: connectionStatus === 'ONLINE' ? 'feedback-green' : '$unnnic-color-neutral-black',
Expand Down
1 change: 0 additions & 1 deletion src/components/chats/FlowsTrigger/ModalAddNewContact.vue
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,6 @@ export default {
props: {
text: this.$t('flows_trigger.successfully_add_contact'),
type: 'success',
scheme: 'feedback-green',
},
seconds: 5,
});
Expand Down
1 change: 0 additions & 1 deletion src/components/chats/FlowsTrigger/SelectFlow.vue
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,6 @@ export default {
props: {
text: this.$t('flows_trigger.successfully_sent'),
type: 'success',
scheme: 'feedback-green',
},
seconds: 5,
});
Expand Down
4 changes: 1 addition & 3 deletions src/components/chats/QuickMessages/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -154,9 +154,7 @@ export default {
unnnicCallAlert({
props: {
text: this.$t('quick_messages.successfully_updated'),
icon: 'success',
scheme: 'feedback-green',
onClose: this.$t('close'),
type: 'success',
},
seconds: 5,
});
Expand Down
7 changes: 2 additions & 5 deletions src/components/settings/forms/Messages.vue
Original file line number Diff line number Diff line change
Expand Up @@ -100,11 +100,8 @@ export default {
unnnicCallAlert({
props: {
title: this.$t('quick_messages.successfully_added'),
icon: 'check-circle-1-1-1',
scheme: 'feedback-green',
closeText: this.$t('close'),
position: 'bottom-right',
text: this.$t('quick_messages.successfully_added'),
type: 'success',
},
seconds: 5,
});
Expand Down
13 changes: 3 additions & 10 deletions src/views/Settings/Sectors/Edit.vue
Original file line number Diff line number Diff line change
Expand Up @@ -503,11 +503,8 @@ export default {
showSuccessfullyUpdateSnackbar() {
unnnicCallAlert({
props: {
title: 'Alterações salvas',
icon: 'check-circle-1-1-1',
scheme: 'feedback-green',
closeText: this.$t('close'),
position: 'bottom-right',
text: 'Alterações salvas',
type: 'success',
},
seconds: 5,
});
Expand Down Expand Up @@ -586,12 +583,8 @@ export default {
this.getQueues();
unnnicCallAlert({
props: {
title: '',
text: 'Atualizações salvas',
icon: 'check-circle-1-1-1',
scheme: 'feedback-green',
closeText: this.$t('close'),
position: 'bottom-right',
type: 'success',
},
seconds: 5,
});
Expand Down
7 changes: 2 additions & 5 deletions src/views/profile/Preferences.vue
Original file line number Diff line number Diff line change
Expand Up @@ -59,11 +59,8 @@ export default {
showConfirmationAlert() {
unnnicCallAlert({
props: {
title: 'Alterações salvas',
icon: 'check-circle-1-1-1',
scheme: 'feedback-green',
closeText: 'Fechar',
position: 'bottom-right',
text: 'Alterações salvas',
type: 'success',
},
seconds: 15,
});
Expand Down

0 comments on commit fd46e66

Please sign in to comment.