salix/modules/client/front/note/create/index.js

22 lines
511 B
JavaScript
Raw Normal View History

2018-05-23 12:26:51 +00:00
import ngModule from '../../module';
import Section from 'salix/components/section';
2017-06-03 11:01:47 +00:00
export default class Controller extends Section {
constructor($element, $) {
super($element, $);
2017-06-03 11:01:47 +00:00
this.note = {
clientFk: parseInt(this.$params.id),
2017-06-03 11:01:47 +00:00
text: null
};
}
2018-07-25 12:18:12 +00:00
cancel() {
this.$state.go('client.card.note.index', {id: this.$params.id});
2018-07-25 12:18:12 +00:00
}
2017-06-03 11:01:47 +00:00
}
ngModule.component('vnNoteCreate', {
2018-05-23 12:26:51 +00:00
template: require('./index.html'),
2017-06-03 11:01:47 +00:00
controller: Controller
});