2018-05-23 12:26:51 +00:00
|
|
|
import ngModule from '../../module';
|
2020-03-20 11:00:53 +00:00
|
|
|
import Section from 'salix/components/section';
|
2017-06-03 11:01:47 +00:00
|
|
|
|
2020-03-20 11:00:53 +00:00
|
|
|
export default class Controller extends Section {
|
|
|
|
constructor($element, $) {
|
|
|
|
super($element, $);
|
2017-06-03 11:01:47 +00:00
|
|
|
this.note = {
|
2020-03-20 11:00:53 +00:00
|
|
|
clientFk: parseInt(this.$params.id),
|
2017-06-03 11:01:47 +00:00
|
|
|
text: null
|
|
|
|
};
|
|
|
|
}
|
2018-07-25 12:18:12 +00:00
|
|
|
|
2018-10-17 07:28:38 +00:00
|
|
|
cancel() {
|
2020-03-20 11:00:53 +00:00
|
|
|
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
|
|
|
|
});
|