salix/modules/entry/front/index/index.js

25 lines
588 B
JavaScript
Raw Normal View History

2020-01-10 10:52:35 +00:00
import ngModule from '../module';
2020-02-18 09:33:17 +00:00
import './style.scss';
2020-01-10 10:52:35 +00:00
export default class Controller {
constructor($scope) {
this.$ = $scope;
}
2020-02-18 09:33:17 +00:00
showTravelDescriptor(event, travelFk) {
if (event.defaultPrevented) return;
event.preventDefault();
event.stopPropagation();
this.selectedTravel = travelFk;
this.$.travelDescriptor.parent = event.target;
this.$.travelDescriptor.show();
}
2020-01-10 10:52:35 +00:00
}
Controller.$inject = ['$scope'];
ngModule.component('vnEntryIndex', {
template: require('./index.html'),
controller: Controller
});