26 lines
561 B
JavaScript
26 lines
561 B
JavaScript
|
import ngModule from '../module';
|
||
|
import Section from 'salix/components/section';
|
||
|
import './style.scss';
|
||
|
|
||
|
class Controller extends Section {
|
||
|
constructor($element, $) {
|
||
|
super($element, $);
|
||
|
}
|
||
|
|
||
|
showTicketDescriptor(event, sale) {
|
||
|
if (!sale.isTicket) return;
|
||
|
|
||
|
this.$.ticketDescriptor.show(event.target, sale.origin);
|
||
|
}
|
||
|
}
|
||
|
|
||
|
Controller.$inject = ['$element', '$scope'];
|
||
|
|
||
|
ngModule.component('vnClientConsumption', {
|
||
|
template: require('./index.html'),
|
||
|
controller: Controller,
|
||
|
bindings: {
|
||
|
client: '<'
|
||
|
}
|
||
|
});
|