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'
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
2019-04-25 12:24:02 +00:00
|
|
|
showWorkerDescriptor(event, workerFk) {
|
2019-04-02 09:04:53 +00:00
|
|
|
if (event.defaultPrevented) return;
|
|
|
|
|
|
|
|
event.preventDefault();
|
|
|
|
event.stopPropagation();
|
|
|
|
|
2019-04-25 12:24:02 +00:00
|
|
|
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: '<'
|
|
|
|
}
|
|
|
|
});
|