diff --git a/modules/item/front/diary/index.html b/modules/item/front/diary/index.html index eca9410fe..1f7a548cc 100644 --- a/modules/item/front/diary/index.html +++ b/modules/item/front/diary/index.html @@ -48,9 +48,9 @@ - {{::sale.origin | dashIfEmpty}} @@ -83,7 +83,7 @@ + vn-id="ticket-descriptor"> diff --git a/modules/item/front/diary/index.js b/modules/item/front/diary/index.js index f9065ca5e..e1a15096a 100644 --- a/modules/item/front/diary/index.js +++ b/modules/item/front/diary/index.js @@ -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'];