From ad8f3f9b9d6f8a26f36a982dd238f4624713892e Mon Sep 17 00:00:00 2001 From: Gerard Date: Thu, 25 Oct 2018 13:45:29 +0200 Subject: [PATCH] #761 no se actualizan los cuando se abren varios summary-popover --- client/item/src/summary/index.html | 44 +++++++++++++++--------------- client/item/src/summary/index.js | 9 +++--- 2 files changed, 27 insertions(+), 26 deletions(-) diff --git a/client/item/src/summary/index.html b/client/item/src/summary/index.html index 90404014f..08c2758f3 100644 --- a/client/item/src/summary/index.html +++ b/client/item/src/summary/index.html @@ -8,17 +8,17 @@ + ng-src="//verdnatura.es/vn-image-data/catalog/200x200/{{$ctrl.item.image}}" + zoom-image="//verdnatura.es/vn-image-data/catalog/1600x900/{{$ctrl.item.image}}" on-error-src/>

Visible

-
{{::$ctrl.summary.visible}}
+
{{$ctrl.summary.visible}}

Available

-
{{::$ctrl.summary.available}}
+
{{$ctrl.summary.available}}
@@ -27,39 +27,39 @@
Basic data
+ value="{{$ctrl.summary.item.name}}"> + value="{{$ctrl.summary.item.longName}}"> + value="{{$ctrl.summary.item.itemType.name}}"> + value="{{$ctrl.summary.item.intrastat.id}}"> + value="{{$ctrl.summary.item.intrastat.description}}"> + value="{{$ctrl.summary.item.relevancy}}"> + value="{{$ctrl.summary.item.origin.name}}"> + value="{{$ctrl.summary.item.expence.name}}"> + value="{{$ctrl.summary.item.itemType.worker.firstName}} {{$ctrl.summary.item.itemType.worker.name}}">
Tax
- +
@@ -68,16 +68,16 @@
Tags
- +
Niche
- +
@@ -85,13 +85,13 @@
Botanical
+ value="{{$ctrl.summary.botanical.botanical}}"> + value="{{$ctrl.summary.botanical.genus.latin_genus_name}}"> + value="{{$ctrl.summary.botanical.specie.latin_species_name}}">
diff --git a/client/item/src/summary/index.js b/client/item/src/summary/index.js index d90f93e1c..3bea01ea5 100644 --- a/client/item/src/summary/index.js +++ b/client/item/src/summary/index.js @@ -7,14 +7,15 @@ class Controller { } getSummary() { - this.$http.get(`/item/api/Items/${this.item.id}/getSummary`).then(response => { + this.$http.get(`/item/api/Items/${this.item.id}/getSummary`).then((response) => { this.summary = response.data; }); } $onChanges() { - if (this.item && this.item.id) + if (this.item && this.item.id) { this.getSummary(); + } } } @@ -24,6 +25,6 @@ ngModule.component('vnItemSummary', { template: require('./index.html'), controller: Controller, bindings: { - item: '<' - } + item: '<', + }, });