diff --git a/module/api/js/common.js b/module/api/js/common.js index f03ba54592..14cbbefac5 100644 --- a/module/api/js/common.js +++ b/module/api/js/common.js @@ -200,6 +200,14 @@ try { } } }, + current: + { + type: Array + }, + ckey: + { + type: Number + } }, watch: { value: { @@ -209,6 +217,14 @@ try { deep: true, } }, + computed: + { + typeOptionsFilter: function() + { + if(this.current[this.ckey + 1] && this.current[this.ckey + 1].parentKey && this.current[this.ckey + 1].parentKey == this.current[this.ckey].key) return typeOptions.slice(0, 2); + return typeOptions; + } + }, methods: { add() { this.$emit('add', this.value) @@ -229,7 +245,7 @@ try {