2018-11-27 12:28:15 +00:00
|
|
|
import ngModule from '../module';
|
2020-03-18 07:35:59 +00:00
|
|
|
import Section from 'salix/components/section';
|
2018-11-27 12:28:15 +00:00
|
|
|
|
2020-03-18 07:35:59 +00:00
|
|
|
class Controller extends Section {
|
2018-11-27 12:28:15 +00:00
|
|
|
async onSubmit() {
|
|
|
|
let newTicketID = await this.$.card.createTicket();
|
|
|
|
this.$state.go('ticket.card.summary', {id: newTicketID});
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-07-24 12:22:30 +00:00
|
|
|
ngModule.vnComponent('vnTicketCreate', {
|
2018-11-27 12:28:15 +00:00
|
|
|
template: require('./index.html'),
|
|
|
|
controller: Controller
|
|
|
|
});
|