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

15 lines
385 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.component('vnTicketCreate', {
template: require('./index.html'),
controller: Controller
});