36 lines
790 B
JavaScript
36 lines
790 B
JavaScript
|
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, userId) {
|
||
|
if (event.defaultPrevented) return;
|
||
|
|
||
|
event.preventDefault();
|
||
|
event.stopPropagation();
|
||
|
|
||
|
this.selectedWorker = userId;
|
||
|
this.$.workerDescriptor.parent = event.target;
|
||
|
this.$.workerDescriptor.show();
|
||
|
}
|
||
|
}
|
||
|
|
||
|
Controller.$inject = ['$scope'];
|
||
|
|
||
|
ngModule.component('vnLog', {
|
||
|
controller: Controller,
|
||
|
template: require('./index.html'),
|
||
|
bindings: {
|
||
|
model: '<'
|
||
|
}
|
||
|
});
|