From 04a31f4cffa754650feda955e9ccaefa3adbf5be Mon Sep 17 00:00:00 2001 From: carlosjr Date: Fri, 29 Oct 2021 16:55:19 +0200 Subject: [PATCH] vn table now receives show buttons options --- front/core/components/smart-table/index.html | 23 +++++++++----------- front/core/components/smart-table/index.js | 14 ++++++++++++ modules/ticket/front/index/index.html | 23 -------------------- modules/ticket/front/index/index.js | 5 +++++ 4 files changed, 29 insertions(+), 36 deletions(-) diff --git a/front/core/components/smart-table/index.html b/front/core/components/smart-table/index.html index 291bff6139..e4b1df1ec9 100644 --- a/front/core/components/smart-table/index.html +++ b/front/core/components/smart-table/index.html @@ -2,7 +2,7 @@
@@ -10,10 +10,12 @@
-
+
@@ -32,16 +34,10 @@ vn-tooltip="Save data">
-
- - - - -
+ +
@@ -61,7 +57,8 @@ message="Remove selected rows"> - - - - - - -
- - - - -
-
diff --git a/modules/ticket/front/index/index.js b/modules/ticket/front/index/index.js index cec47baebf..d076fec5a5 100644 --- a/modules/ticket/front/index/index.js +++ b/modules/ticket/front/index/index.js @@ -8,6 +8,11 @@ export default class Controller extends Section { super($element, $); this.vnReport = vnReport; this.smartTableOptions = { + activeButtons: { + search: true, + crud: true, + shownColumns: true, + }, columns: [ { field: 'salesPersonFk',