From 6fcb68229264c24b71f0798881bf3b72e6f05ae2 Mon Sep 17 00:00:00 2001 From: lucile varloteaux <lucile.varloteaux@inrae.fr> Date: Thu, 12 Jan 2023 09:38:59 +0100 Subject: [PATCH 1/2] vide les champs input (mais ils se re-remplient) --- ui/src/views/datatype/DataTypeTableView.vue | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ui/src/views/datatype/DataTypeTableView.vue b/ui/src/views/datatype/DataTypeTableView.vue index fe17a77d1..a012fc016 100644 --- a/ui/src/views/datatype/DataTypeTableView.vue +++ b/ui/src/views/datatype/DataTypeTableView.vue @@ -623,7 +623,6 @@ export default class DataTypeTableView extends Vue { }, []); }) .flat(); - let columnIndex = 0; this.variables.forEach((variable, variableIndex) => { Object.values(variable.components).forEach(() => { @@ -840,6 +839,9 @@ export default class DataTypeTableView extends Vue { } clearSearch() { + for (let j = 0; j<document.getElementsByClassName("input").length; j++) { + document.getElementsByClassName("input")[j].value = ""; + } for (var i = 0; i < this.variableSearch.length; i++) { this.params.variableComponentFilters = []; this.variableSearch = []; -- GitLab From 61cb7004ab7461695082f51ac2e1704f3a64fca6 Mon Sep 17 00:00:00 2001 From: lucile varloteaux <lucile.varloteaux@inrae.fr> Date: Thu, 12 Jan 2023 11:54:41 +0100 Subject: [PATCH 2/2] =?UTF-8?q?champs=20vid=C3=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ui/src/views/datatype/DataTypeTableView.vue | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/ui/src/views/datatype/DataTypeTableView.vue b/ui/src/views/datatype/DataTypeTableView.vue index a012fc016..533f69350 100644 --- a/ui/src/views/datatype/DataTypeTableView.vue +++ b/ui/src/views/datatype/DataTypeTableView.vue @@ -279,12 +279,14 @@ ></CollapsibleInterval> </b-field> <b-input - v-model="search[component.variable + '_' + component.component]" - icon-right="search" - :placeholder="$t('dataTypeAuthorizations.search')" - type="search" - @blur="addVariableSearch(component)" - size="is-small" + class="is-primary" + v-model="search[component.variable + '_' + component.component]" + icon="search" + :placeholder="$t('dataTypeAuthorizations.search')" + type="search" + autocomplete="off" + @blur="addVariableSearch(component)" + size="is-small" ></b-input> </b-field> </div> @@ -556,6 +558,7 @@ export default class DataTypeTableView extends Vue { variableComponentFilters: [], variableComponentOrderBy: [], }); + window.location.reload(); this.initDatatype(); } @@ -845,6 +848,7 @@ export default class DataTypeTableView extends Vue { for (var i = 0; i < this.variableSearch.length; i++) { this.params.variableComponentFilters = []; this.variableSearch = []; + this.search = {}; } this.initDatatype(); } -- GitLab