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

15 lines
387 B
JavaScript

import ngModule from '../module';
import Section from 'salix/components/section';
class Controller extends Section {
async onSubmit() {
let newTicketID = await this.$.card.createTicket();
this.$state.go('ticket.card.summary', {id: newTicketID});
}
}
ngModule.vnComponent('vnTicketCreate', {
template: require('./index.html'),
controller: Controller
});