Commit 6546f41222aea2ea4b8c542b3e5cd363e5bfabcf
1 parent
77395397
controllets and base datatel behavior update
Showing
1 changed file
with
10 additions
and
4 deletions
controllets/data-sevc-controllet/data-sevc-controllet.html
@@ -627,7 +627,7 @@ Example: | @@ -627,7 +627,7 @@ Example: | ||
627 | */ | 627 | */ |
628 | paramsFields:{ | 628 | paramsFields:{ |
629 | type: Object, | 629 | type: Object, |
630 | - value: {} | 630 | + value: undefined |
631 | }, | 631 | }, |
632 | /** | 632 | /** |
633 | * It's used to store the tab index in the first pass | 633 | * It's used to store the tab index in the first pass |
@@ -884,7 +884,7 @@ Example: | @@ -884,7 +884,7 @@ Example: | ||
884 | } | 884 | } |
885 | 885 | ||
886 | case 2: | 886 | case 2: |
887 | - if(this.selectedFields.length == 0){ | 887 | + if(this.selectedFields == undefined || this.selectedFields.length == 0){ |
888 | this.$.message.text = "You have to select a set of fields to access to pass 3."; | 888 | this.$.message.text = "You have to select a set of fields to access to pass 3."; |
889 | this.$.message.show(); | 889 | this.$.message.show(); |
890 | return false; | 890 | return false; |
@@ -892,8 +892,14 @@ Example: | @@ -892,8 +892,14 @@ Example: | ||
892 | return true; | 892 | return true; |
893 | } | 893 | } |
894 | case 3: | 894 | case 3: |
895 | - this.injectDatalet(this.$.datalet_placeholder_2); | ||
896 | - return true; | 895 | + if(this.paramsFields == undefined){ |
896 | + this.$.message.text = "You have to select a datalet and map the selected fields to datalets fields(by drag and drop) to access to pass 4."; | ||
897 | + this.$.message.show(); | ||
898 | + return false; | ||
899 | + }else{ | ||
900 | + this.injectDatalet(this.$.datalet_placeholder_2); | ||
901 | + return true; | ||
902 | + } | ||
897 | } | 903 | } |
898 | 904 | ||
899 | }, | 905 | }, |