diff --git a/src/views/administration/notifications/Alerts.vue b/src/views/administration/notifications/Alerts.vue
index ac8c9407..a850b404 100644
--- a/src/views/administration/notifications/Alerts.vue
+++ b/src/views/administration/notifications/Alerts.vue
@@ -221,6 +221,7 @@ export default {
+ {{ $t('admin.perform_test') }}
@@ -412,6 +413,24 @@ export default {
this.$toastr.w(this.$t('condition.unsuccessful_action'));
});
},
+ testNotification: function () {
+ let url = `${this.$api.BASE_URL}/${this.$api.URL_NOTIFICATION_PUBLISHER}/test/${this.uuid}`;
+ let params = new URLSearchParams();
+ params.append('destination', this.destination);
+ this.axios
+ .post(url, params, {
+ headers: {
+ 'Content-Type': 'application/x-www-form-urlencoded',
+ },
+ })
+ .then((response) => {
+ this.alert = response.data;
+ this.$toastr.s(this.$t('admin.test_notification_queued'));
+ })
+ .catch((error) => {
+ this.$toastr.w(this.$t('condition.unsuccessful_action'));
+ });
+ },
updateProjectSelection: function (selections) {
this.$root.$emit('bv::hide::modal', 'selectProjectModal');
for (let i = 0; i < selections.length; i++) {