diff --git a/src/views/administration/notifications/Alerts.vue b/src/views/administration/notifications/Alerts.vue
index dd8cc3556..a5c2ae75d 100644
--- a/src/views/administration/notifications/Alerts.vue
+++ b/src/views/administration/notifications/Alerts.vue
@@ -208,6 +208,7 @@ export default {
+ {{ $t('admin.perform_test') }}
@@ -395,6 +396,26 @@ 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++) {