You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airavata.apache.org by ma...@apache.org on 2019/07/24 13:14:19 UTC

[airavata-django-portal] branch master updated: AIRAVATA-3180 Fix bug with displaying notifications

This is an automated email from the ASF dual-hosted git repository.

machristie pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/airavata-django-portal.git


The following commit(s) were added to refs/heads/master by this push:
     new 078d1ab  AIRAVATA-3180 Fix bug with displaying notifications
078d1ab is described below

commit 078d1abbf3a0380ab2b1df25b37be8067c83b070
Author: Marcus Christie <ma...@apache.org>
AuthorDate: Wed Jul 24 09:14:07 2019 -0400

    AIRAVATA-3180 Fix bug with displaying notifications
---
 .../static/common/js/components/NotificationsDisplay.vue      | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/django_airavata/static/common/js/components/NotificationsDisplay.vue b/django_airavata/static/common/js/components/NotificationsDisplay.vue
index 636814a..bc00a18 100644
--- a/django_airavata/static/common/js/components/NotificationsDisplay.vue
+++ b/django_airavata/static/common/js/components/NotificationsDisplay.vue
@@ -64,6 +64,17 @@ export default {
     dismissUnhandledError: function(unhandledError) {
       errors.UnhandledErrorDisplayList.remove(unhandledError);
     },
+    variant: function(notification) {
+      if (notification.type === "SUCCESS") {
+        return "success";
+      } else if (notification.type === "ERROR") {
+        return "danger";
+      } else if (notification.type === "WARNING") {
+        return "warning";
+      } else {
+        return "secondary";
+      }
+    },
     loadAPIServerStatus() {
       return services.APIServerStatusCheckService.get(
         {},