2018-05-23 12:26:51 +00:00
|
|
|
import ngModule from '../../module';
|
2017-06-03 11:01:47 +00:00
|
|
|
|
|
|
|
export default class Controller {
|
|
|
|
constructor($state) {
|
2018-07-25 12:18:12 +00:00
|
|
|
this.$state = $state;
|
2017-06-03 11:01:47 +00:00
|
|
|
this.note = {
|
|
|
|
clientFk: parseInt($state.params.id),
|
|
|
|
text: null
|
|
|
|
};
|
|
|
|
}
|
2018-07-25 12:18:12 +00:00
|
|
|
|
2018-10-17 07:28:38 +00:00
|
|
|
cancel() {
|
2018-07-25 12:18:12 +00:00
|
|
|
this.$state.go('client.card.note.index', {id: this.$state.params.id});
|
|
|
|
}
|
2017-06-03 11:01:47 +00:00
|
|
|
}
|
|
|
|
Controller.$inject = ['$state'];
|
|
|
|
|
|
|
|
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
|
|
|
|
});
|