21 lines
435 B
JavaScript
21 lines
435 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.component('vnWorkerBasicData', {
|
|
template: require('./index.html'),
|
|
controller: Controller,
|
|
bindings: {
|
|
worker: '<'
|
|
},
|
|
require: {
|
|
card: '^vnWorkerCard'
|
|
}
|
|
});
|