21 lines
437 B
JavaScript
21 lines
437 B
JavaScript
import ngModule from '../module';
|
|
import Section from 'salix/components/section';
|
|
|
|
class Controller extends Section {
|
|
onSubmit() {
|
|
return this.$.watcher.submit()
|
|
.then(() => this.card.reload());
|
|
}
|
|
}
|
|
|
|
ngModule.vnComponent('vnWorkerBasicData', {
|
|
template: require('./index.html'),
|
|
controller: Controller,
|
|
bindings: {
|
|
worker: '<'
|
|
},
|
|
require: {
|
|
card: '^vnWorkerCard'
|
|
}
|
|
});
|