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/12/13 19:29:12 UTC

[airavata-django-portal] branch master updated: AIRAVATA-3277 Dispatch valid/invalid whenever valid changes

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 ba7c70f  AIRAVATA-3277 Dispatch valid/invalid whenever valid changes
ba7c70f is described below

commit ba7c70ffc2c1e55ef5e6d7a08dc93fa52e7869eb
Author: Marcus Christie <ma...@apache.org>
AuthorDate: Fri Dec 13 14:27:43 2019 -0500

    AIRAVATA-3277 Dispatch valid/invalid whenever valid changes
    
    Whether input is valid could change either because the value is
    invalid or the metadata, like isRequired, have changed.
---
 .../js/input-editors/InputEditorMixin.js                              | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/django_airavata/apps/workspace/django-airavata-workspace-plugin-api/js/input-editors/InputEditorMixin.js b/django_airavata/apps/workspace/django-airavata-workspace-plugin-api/js/input-editors/InputEditorMixin.js
index a3298bd..585697d 100644
--- a/django_airavata/apps/workspace/django-airavata-workspace-plugin-api/js/input-editors/InputEditorMixin.js
+++ b/django_airavata/apps/workspace/django-airavata-workspace-plugin-api/js/input-editors/InputEditorMixin.js
@@ -51,7 +51,6 @@ export default {
         valueChanged: function() {
             this.inputHasBegun = true;
             this.$emit('input', this.data);
-            this.checkValidation();
         },
         checkValidation: function() {
             if (this.valid) {
@@ -67,6 +66,9 @@ export default {
     watch: {
         value(newValue) {
           this.data = newValue;
+        },
+        valid() {
+          this.checkValidation();
         }
     }
 }