From 0c0a465784170a9d2fae7dd7545bbc7d1549af35 Mon Sep 17 00:00:00 2001 From: Gerard Date: Thu, 17 Jan 2019 11:11:45 +0100 Subject: [PATCH] descriptor not showing correctly fixed --- modules/order/front/summary/index.html | 2 +- modules/order/front/summary/index.js | 9 ++++----- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/modules/order/front/summary/index.html b/modules/order/front/summary/index.html index b6d46a512..a48bd6934 100644 --- a/modules/order/front/summary/index.html +++ b/modules/order/front/summary/index.html @@ -71,7 +71,7 @@ {{("000000"+row.itemFk).slice(-6)}} diff --git a/modules/order/front/summary/index.js b/modules/order/front/summary/index.js index e84444718..8b32415c8 100644 --- a/modules/order/front/summary/index.js +++ b/modules/order/front/summary/index.js @@ -11,9 +11,8 @@ class Controller { setSummary() { this.$http.get(`/order/api/Orders/${this.order.id}/summary`).then(res => { - if (res && res.data) { + if (res && res.data) this.summary = res.data; - } }); } @@ -31,17 +30,17 @@ class Controller { this.setSummary(); } - showDescriptor(event, item) { + showDescriptor(event, itemFk) { this.quicklinks = { btnThree: { icon: 'icon-transaction', state: `item.card.diary({ - id: ${item.id}, + id: ${itemFk}, })`, tooltip: 'Item diary' } }; - this.$scope.descriptor.itemFk = item.id; + this.$scope.descriptor.itemFk = itemFk; this.$scope.descriptor.parent = event.target; this.$scope.descriptor.show(); }