From 66c5eda6f2989c017c2a5d5813c1db03d9039058 Mon Sep 17 00:00:00 2001 From: carlossa Date: Tue, 13 Jun 2023 16:08:11 +0200 Subject: [PATCH] refs #5325 remove defaultSearch --- front/core/components/smart-table/index.js | 2 ++ modules/claim/front/action/index.js | 1 - modules/claim/front/index/index.js | 1 - modules/client/front/defaulter/index.js | 1 - modules/client/front/extended-list/index.js | 1 - modules/client/front/notification/index.js | 1 - modules/entry/front/latest-buys/index.js | 1 - modules/invoiceOut/front/negative-bases/index.js | 1 - modules/item/front/fixed-price/index.js | 1 - modules/item/front/index/index.js | 1 - modules/item/front/item-shelving/index.js | 1 - modules/monitor/front/index/clients/index.js | 1 - modules/monitor/front/index/tickets/index.js | 1 - modules/route/front/agency-term/index/index.js | 1 - modules/ticket/front/advance/index.js | 1 - modules/ticket/front/expedition/index.js | 1 - modules/ticket/front/future/index.js | 1 - modules/ticket/front/weekly/index.js | 1 - 18 files changed, 2 insertions(+), 17 deletions(-) diff --git a/front/core/components/smart-table/index.js b/front/core/components/smart-table/index.js index b2380a62f..c3b927c62 100644 --- a/front/core/components/smart-table/index.js +++ b/front/core/components/smart-table/index.js @@ -40,6 +40,8 @@ export default class SmartTable extends Component { this._options = options; if (!options) return; + options.defaultSearch = true; + if (options.defaultSearch) this.displaySearch(); diff --git a/modules/claim/front/action/index.js b/modules/claim/front/action/index.js index 6b4879a85..10b629f27 100644 --- a/modules/claim/front/action/index.js +++ b/modules/claim/front/action/index.js @@ -26,7 +26,6 @@ export default class Controller extends Section { activeButtons: { search: true }, - defaultSearch: true, columns: [ { field: 'claimDestinationFk', diff --git a/modules/claim/front/index/index.js b/modules/claim/front/index/index.js index 8e948f426..e3fdabf79 100644 --- a/modules/claim/front/index/index.js +++ b/modules/claim/front/index/index.js @@ -9,7 +9,6 @@ class Controller extends Section { activeButtons: { search: true }, - defaultSearch: true, columns: [ { field: 'clientName', diff --git a/modules/client/front/defaulter/index.js b/modules/client/front/defaulter/index.js index 1244191f1..95c7622f9 100644 --- a/modules/client/front/defaulter/index.js +++ b/modules/client/front/defaulter/index.js @@ -12,7 +12,6 @@ export default class Controller extends Section { activeButtons: { search: true }, - defaultSearch: true, columns: [ { field: 'clientFk', diff --git a/modules/client/front/extended-list/index.js b/modules/client/front/extended-list/index.js index 2cb7a6d58..8eed48d01 100644 --- a/modules/client/front/extended-list/index.js +++ b/modules/client/front/extended-list/index.js @@ -11,7 +11,6 @@ class Controller extends Section { search: true, shownColumns: true, }, - defaultSearch: true, columns: [ { field: 'socialName', diff --git a/modules/client/front/notification/index.js b/modules/client/front/notification/index.js index ada543715..faa062b25 100644 --- a/modules/client/front/notification/index.js +++ b/modules/client/front/notification/index.js @@ -9,7 +9,6 @@ export default class Controller extends Section { activeButtons: { search: true }, - defaultSearch: true, columns: [ { field: 'socialName', diff --git a/modules/entry/front/latest-buys/index.js b/modules/entry/front/latest-buys/index.js index 1a9b3627b..d9065193e 100644 --- a/modules/entry/front/latest-buys/index.js +++ b/modules/entry/front/latest-buys/index.js @@ -14,7 +14,6 @@ export default class Controller extends Section { search: true, shownColumns: true, }, - defaultSearch: true, columns: [ { field: 'code', diff --git a/modules/invoiceOut/front/negative-bases/index.js b/modules/invoiceOut/front/negative-bases/index.js index b70a2f7be..f60668b20 100644 --- a/modules/invoiceOut/front/negative-bases/index.js +++ b/modules/invoiceOut/front/negative-bases/index.js @@ -20,7 +20,6 @@ export default class Controller extends Section { activeButtons: { search: true, }, - defaultSearch: true, columns: [ { field: 'isActive', diff --git a/modules/item/front/fixed-price/index.js b/modules/item/front/fixed-price/index.js index a39cd6602..fe6788e9c 100644 --- a/modules/item/front/fixed-price/index.js +++ b/modules/item/front/fixed-price/index.js @@ -13,7 +13,6 @@ export default class Controller extends Section { activeButtons: { search: true }, - defaultSearch: true, columns: [ { field: 'warehouseFk', diff --git a/modules/item/front/index/index.js b/modules/item/front/index/index.js index f341f6454..10bd4bbb7 100644 --- a/modules/item/front/index/index.js +++ b/modules/item/front/index/index.js @@ -11,7 +11,6 @@ class Controller extends Section { search: true, shownColumns: true, }, - defaultSearch: true, columns: [ { field: 'category', diff --git a/modules/item/front/item-shelving/index.js b/modules/item/front/item-shelving/index.js index 8e5df459d..b8584039b 100644 --- a/modules/item/front/item-shelving/index.js +++ b/modules/item/front/item-shelving/index.js @@ -9,7 +9,6 @@ export default class Controller extends Section { activeButtons: { search: true }, - defaultSearch: true, columns: [ { field: 'parking', diff --git a/modules/monitor/front/index/clients/index.js b/modules/monitor/front/index/clients/index.js index 9faf2ed53..ac3ce9140 100644 --- a/modules/monitor/front/index/clients/index.js +++ b/modules/monitor/front/index/clients/index.js @@ -20,7 +20,6 @@ export default class Controller extends Section { activeButtons: { search: true }, - defaultSearch: true, columns: [ { field: 'clientFk', diff --git a/modules/monitor/front/index/tickets/index.js b/modules/monitor/front/index/tickets/index.js index 92097833b..2f2dead05 100644 --- a/modules/monitor/front/index/tickets/index.js +++ b/modules/monitor/front/index/tickets/index.js @@ -12,7 +12,6 @@ export default class Controller extends Section { search: true, shownColumns: true, }, - defaultSearch: true, columns: [ { field: 'totalProblems', diff --git a/modules/route/front/agency-term/index/index.js b/modules/route/front/agency-term/index/index.js index 6277fb9a1..6c3bafc9a 100644 --- a/modules/route/front/agency-term/index/index.js +++ b/modules/route/front/agency-term/index/index.js @@ -9,7 +9,6 @@ class Controller extends Section { activeButtons: { search: true }, - defaultSearch: true, columns: [ { field: 'agencyModeFk', diff --git a/modules/ticket/front/advance/index.js b/modules/ticket/front/advance/index.js index 0cd1b0981..0cec41227 100644 --- a/modules/ticket/front/advance/index.js +++ b/modules/ticket/front/advance/index.js @@ -11,7 +11,6 @@ export default class Controller extends Section { activeButtons: { search: true, }, - defaultSearch: true, columns: [ { field: 'state', diff --git a/modules/ticket/front/expedition/index.js b/modules/ticket/front/expedition/index.js index 1e30ce447..b8046be52 100644 --- a/modules/ticket/front/expedition/index.js +++ b/modules/ticket/front/expedition/index.js @@ -11,7 +11,6 @@ class Controller extends Section { search: true, shownColumns: true, }, - defaultSearch: true, columns: [ { field: 'packageItemName', diff --git a/modules/ticket/front/future/index.js b/modules/ticket/front/future/index.js index 846c3883f..66d626993 100644 --- a/modules/ticket/front/future/index.js +++ b/modules/ticket/front/future/index.js @@ -10,7 +10,6 @@ export default class Controller extends Section { activeButtons: { search: true, }, - defaultSearch: true, columns: [{ field: 'totalProblems', searchable: false, diff --git a/modules/ticket/front/weekly/index.js b/modules/ticket/front/weekly/index.js index d0a333158..a10ff7184 100644 --- a/modules/ticket/front/weekly/index.js +++ b/modules/ticket/front/weekly/index.js @@ -22,7 +22,6 @@ export default class Controller extends Section { search: true, shownColumns: true, }, - defaultSearch: true, columns: [ { field: 'ticketFk',