salix/modules/worker/front/log/index.js

36 lines
794 B
JavaScript
Raw Normal View History

2019-04-02 09:04:53 +00:00
import ngModule from '../module';
import './style.scss';
export default class Controller {
constructor($scope) {
this.$ = $scope;
this.actionsText = {
'insert': 'Creates',
'update': 'Updates',
'delete': 'Deletes',
'select': 'Views'
};
}
showWorkerDescriptor(event, workerFk) {
2019-04-02 09:04:53 +00:00
if (event.defaultPrevented) return;
event.preventDefault();
event.stopPropagation();
this.selectedWorker = workerFk;
2019-04-02 09:04:53 +00:00
this.$.workerDescriptor.parent = event.target;
this.$.workerDescriptor.show();
}
}
Controller.$inject = ['$scope'];
ngModule.component('vnLog', {
controller: Controller,
template: require('./index.html'),
bindings: {
model: '<'
}
});