salix/modules/ticket/front/create/index.js

15 lines
387 B
JavaScript
Raw Normal View History

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});
}
}
ngModule.vnComponent('vnTicketCreate', {
2018-11-27 12:28:15 +00:00
template: require('./index.html'),
controller: Controller
});