22 lines
513 B
JavaScript
22 lines
513 B
JavaScript
import ngModule from '../../module';
|
|
import Section from 'salix/components/section';
|
|
|
|
export default class Controller extends Section {
|
|
constructor($element, $) {
|
|
super($element, $);
|
|
this.note = {
|
|
clientFk: parseInt(this.$params.id),
|
|
text: null
|
|
};
|
|
}
|
|
|
|
cancel() {
|
|
this.$state.go('client.card.note.index', {id: this.$params.id});
|
|
}
|
|
}
|
|
|
|
ngModule.vnComponent('vnNoteCreate', {
|
|
template: require('./index.html'),
|
|
controller: Controller
|
|
});
|