From 16d7186829e19dd63c3dc173024412e001461889 Mon Sep 17 00:00:00 2001 From: Joan Sanchez Date: Tue, 2 Jun 2020 14:42:58 +0200 Subject: [PATCH] Fixed initial filters --- front/core/components/searchbar/searchbar.js | 2 +- modules/item/front/request-search-panel/index.html | 7 +++++-- .../item/front/request-search-panel/locale/es.yml | 3 ++- modules/item/front/request/index.html | 9 +++++---- modules/item/front/request/index.js | 12 +++++------- 5 files changed, 18 insertions(+), 15 deletions(-) diff --git a/front/core/components/searchbar/searchbar.js b/front/core/components/searchbar/searchbar.js index d1d8a57f3..287db0775 100644 --- a/front/core/components/searchbar/searchbar.js +++ b/front/core/components/searchbar/searchbar.js @@ -78,7 +78,7 @@ export default class Searchbar extends Component { } fetchStateFilter(autoLoad) { - let filter = null; + let filter = this.filter ? this.filter : null; if (this.$state.is(this.searchState)) { if (this.$params.q) { diff --git a/modules/item/front/request-search-panel/index.html b/modules/item/front/request-search-panel/index.html index 4f95abf77..453f3105b 100644 --- a/modules/item/front/request-search-panel/index.html +++ b/modules/item/front/request-search-panel/index.html @@ -51,8 +51,11 @@ - - + + - + Ticket ID @@ -82,7 +83,7 @@ {{request.itemDescription}} - {{$ctrl.getState(request.isOk)}} {{request.isOk}} + {{$ctrl.getState(request.isOk)}}