From 3409e773bf708cb4c4abe2fc1c2b0c13c9236c43 Mon Sep 17 00:00:00 2001 From: Stanislav Popov Date: Thu, 27 Aug 2020 19:17:18 +0500 Subject: [PATCH] fix: move current columns after table stats --- components/Stats.vue | 8 ++++---- components/Toolbar.vue | 25 ++++--------------------- pages/index.vue | 42 ++++++++++++++++++++++++++++++++++-------- 3 files changed, 42 insertions(+), 33 deletions(-) diff --git a/components/Stats.vue b/components/Stats.vue index a4aeabf..d9e57e6 100644 --- a/components/Stats.vue +++ b/components/Stats.vue @@ -134,7 +134,7 @@ export default { } val = Math.round(sum / this.filteredItems.length); validateClass = this.getColumnValidateClass(val, field.validate); - valueText = val + " (average)"; + valueText = val + " (average)"; // tolang } // enum @@ -205,11 +205,11 @@ export default { // console.log('dupls: ', dupls); val = dupls.length; - validateClass = dupls.length > 0 ? "warning" : "success"; + validateClass = dupls.length > 0 ? "warning" : "success"; // tolang if (dupls.length > 0) { - valueText = `${dupls.length} non-unique values`; + valueText = `${dupls.length} non-unique values`; // tolang } else { - valueText = `all unique`; + valueText = `all unique`; // tolang } } diff --git a/components/Toolbar.vue b/components/Toolbar.vue index 9c6a506..af6650d 100644 --- a/components/Toolbar.vue +++ b/components/Toolbar.vue @@ -61,6 +61,10 @@ +
+ total: {{ filteredItems.length }} +
+
filters:
- -
current: - -
@@ -108,7 +101,6 @@