item diary, fix ticket descriptor
gitea/salix/pipeline/head This commit looks good Details

This commit is contained in:
Bernat Exposito Domenech 2020-06-03 10:37:17 +02:00
parent 751f79373a
commit 0b3608433c
2 changed files with 10 additions and 4 deletions

View File

@ -48,9 +48,9 @@
</span>
</vn-td>
<vn-td number>
<span class="chip"
ng-class="::{link: sale.isTicket}"
vn-click-stop="descriptor.show($event, sale.origin)"
<span class="link"
ng-if="::sale.isTicket"
ng-click="$ctrl.showTicketDescriptor($event, sale)"
name="origin">
{{::sale.origin | dashIfEmpty}}
</span>
@ -83,7 +83,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">

View File

@ -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'];