From 78223b3e38c6cc8ca9726eee3173c3b0aa66b353 Mon Sep 17 00:00:00 2001 From: Mateus Machado Luna Date: Mon, 7 Oct 2019 11:19:22 -0300 Subject: [PATCH] Renames 'options' object as 'filterTypeOptions to prevent conflicts with mixin.' --- src/classes/filter-types/date/Date.vue | 12 ++++++------ .../numeric-interval/NumericInterval.vue | 8 ++++---- .../NumericListInterval.vue | 16 ++++++++-------- src/classes/filter-types/numeric/Numeric.vue | 6 +++--- 4 files changed, 21 insertions(+), 21 deletions(-) diff --git a/src/classes/filter-types/date/Date.vue b/src/classes/filter-types/date/Date.vue index 1b5996fb2..1447a2a32 100644 --- a/src/classes/filter-types/date/Date.vue +++ b/src/classes/filter-types/date/Date.vue @@ -60,7 +60,7 @@ @@ -119,7 +119,7 @@ created() { this.collection = this.filter.collection_id; this.metadatum = (typeof this.filter.metadatum.metadatum_id == 'object' ? this.filter.metadatum.metadatum_id.metadatum_id : this.filter.metadatum.metadatum_id); - this.options = this.filter.filter_type_options; + this.filterTypeOptions = this.filter.filter_type_options; let endpoint = '/collection/' + this.collection + '/metadata/' + this.metadatum; @@ -146,7 +146,7 @@ return { value: null, clear: false, - options: [], + filterTypeOptions: [], collection: '', metadatum: '', metadatum_object: {}, diff --git a/src/classes/filter-types/numeric-interval/NumericInterval.vue b/src/classes/filter-types/numeric-interval/NumericInterval.vue index cfcada710..4fbbaf3bc 100644 --- a/src/classes/filter-types/numeric-interval/NumericInterval.vue +++ b/src/classes/filter-types/numeric-interval/NumericInterval.vue @@ -4,7 +4,7 @@ :aria-labelledby="labelId" size="is-small" @input="validate_values()" - :step="options.step" + :step="filterTypeOptions.step" v-model="valueInit" />

{{ $i18n.get('label_until') }}

@@ -12,7 +12,7 @@ :aria-labelledby="labelId" size="is-small" @input="validate_values()" - :step="options.step" + :step="filterTypeOptions.step" v-model="valueEnd"/> @@ -24,7 +24,7 @@ created() { this.collectionId = this.filter.collection_id; this.metadatumId = this.filter.metadatum.metadatum_id; - this.options = this.filter.filter_type_options; + this.filterTypeOptions = this.filter.filter_type_options; this.$eventBusSearch.$on('removeFromFilterTag', this.cleanSearchFromTags); }, @@ -35,7 +35,7 @@ isValid: false, collectionId: '', metadatum: '', - options: [], + filterTypeOptions: [], withError: false } }, diff --git a/src/classes/filter-types/numeric-list-interval/NumericListInterval.vue b/src/classes/filter-types/numeric-list-interval/NumericListInterval.vue index 31abf0d50..5871e9d49 100644 --- a/src/classes/filter-types/numeric-list-interval/NumericListInterval.vue +++ b/src/classes/filter-types/numeric-list-interval/NumericListInterval.vue @@ -8,7 +8,7 @@ {{ $i18n.get('label_clean') }}