Merge pull request 'item diary, fix ticket descriptor' (#290) from 2288-item_diary into dev
gitea/salix/pipeline/head This commit looks good
Details
gitea/salix/pipeline/head This commit looks good
Details
Reviewed-by: Joan Sanchez <joan@verdnatura.es>
This commit is contained in:
commit
ca19581a5d
|
@ -48,9 +48,8 @@
|
|||
</span>
|
||||
</vn-td>
|
||||
<vn-td number>
|
||||
<span class="chip"
|
||||
ng-class="::{link: sale.isTicket}"
|
||||
vn-click-stop="descriptor.show($event, sale.origin)"
|
||||
<span ng-class="::{link: sale.isTicket}"
|
||||
ng-click="$ctrl.showTicketDescriptor($event, sale)"
|
||||
name="origin">
|
||||
{{::sale.origin | dashIfEmpty}}
|
||||
</span>
|
||||
|
@ -83,7 +82,7 @@
|
|||
</vn-card>
|
||||
</vn-vertical>
|
||||
<vn-ticket-descriptor-popover
|
||||
vn-id="descriptor">
|
||||
vn-id="ticket-descriptor">
|
||||
</vn-ticket-descriptor-popover>
|
||||
<vn-client-descriptor-popover
|
||||
vn-id="clientDescriptor">
|
||||
|
|
|
@ -57,6 +57,12 @@ class Controller extends Section {
|
|||
this.$location.hash(hash);
|
||||
this.$anchorScroll();
|
||||
}
|
||||
|
||||
showTicketDescriptor(event, sale) {
|
||||
if (!sale.isTicket) return;
|
||||
|
||||
this.$.ticketDescriptor.show(event.target, sale.origin);
|
||||
}
|
||||
}
|
||||
|
||||
Controller.$inject = ['$element', '$scope', '$anchorScroll', '$location'];
|
||||
|
|
Loading…
Reference in New Issue