descriptor not showing correctly fixed
This commit is contained in:
parent
2b2fe69d0d
commit
0c0a465784
|
@ -71,7 +71,7 @@
|
|||
</td>
|
||||
<td number>
|
||||
<span
|
||||
ng-click="$ctrl.showDescriptor($event, row)"
|
||||
ng-click="$ctrl.showDescriptor($event, row.itemFk)"
|
||||
class="link" pointer>
|
||||
{{("000000"+row.itemFk).slice(-6)}}
|
||||
</span>
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue