2018-03-14 10:41:19 +00:00
|
|
|
import ngModule from '../module';
|
2020-03-17 14:18:02 +00:00
|
|
|
import Section from 'salix/components/section';
|
2018-03-14 10:41:19 +00:00
|
|
|
|
2020-03-17 14:18:02 +00:00
|
|
|
class Controller extends Section {
|
2018-07-09 11:54:43 +00:00
|
|
|
async onSubmit() {
|
|
|
|
let newOrderID = await this.$.card.createOrder();
|
2019-10-31 14:24:28 +00:00
|
|
|
this.$state.go('order.card.summary', {id: newOrderID});
|
2018-03-14 10:41:19 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-07-24 12:22:30 +00:00
|
|
|
ngModule.vnComponent('vnOrderCreate', {
|
2018-05-25 08:03:45 +00:00
|
|
|
template: require('./index.html'),
|
|
|
|
controller: Controller
|
2018-03-14 10:41:19 +00:00
|
|
|
});
|