From 64eef322e9623b6fe1dda273ea9eaac238af59ac Mon Sep 17 00:00:00 2001 From: Joan Date: Tue, 3 Jul 2018 14:57:08 +0200 Subject: [PATCH] Fixed vnTable trying to apply filter an it's not defined. --- client/core/src/components/table/index.js | 2 +- client/core/src/components/table/style.scss | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/client/core/src/components/table/index.js b/client/core/src/components/table/index.js index 047e82278..9f78a3e96 100644 --- a/client/core/src/components/table/index.js +++ b/client/core/src/components/table/index.js @@ -25,7 +25,7 @@ export default class Table { } $onChanges() { - if (this.model) + if (this.model && this.model.filter) this.applyFilter(); } diff --git a/client/core/src/components/table/style.scss b/client/core/src/components/table/style.scss index 821a71f52..5a7be62c0 100644 --- a/client/core/src/components/table/style.scss +++ b/client/core/src/components/table/style.scss @@ -13,6 +13,7 @@ vn-table { display: table-header-group; vn-th[field] { + position: relative; cursor: pointer } @@ -84,6 +85,10 @@ vn-table { &[number]{ text-align: right; } + + vn-icon.bright, i.bright { + color: #f7931e; + } } } }