18 lines
415 B
JavaScript
18 lines
415 B
JavaScript
import ngModule from '../module';
|
|
import Section from 'salix/components/section';
|
|
|
|
class Controller extends Section {
|
|
onDialogAccept(id) {
|
|
return this.$http.delete(`Expeditions/${id}`)
|
|
.then(() => this.$.model.refresh());
|
|
}
|
|
}
|
|
|
|
ngModule.vnComponent('vnTicketExpedition', {
|
|
template: require('./index.html'),
|
|
controller: Controller,
|
|
bindings: {
|
|
ticket: '<',
|
|
},
|
|
});
|