TEST refs #6083 feat: add lilium ticketSms #1702
|
@ -0,0 +1,3 @@
|
|||
INSERT INTO `salix`.`ACL` (model, property, accessType, permission, principalType, principalId)
|
||||
VALUES
|
||||
('TicketSms', 'find', 'READ', 'ALLOW', 'ROLE', 'salesPerson');
|
|
@ -36,3 +36,4 @@ import './future';
|
|||
import './future-search-panel';
|
||||
import './advance';
|
||||
import './advance-search-panel';
|
||||
import './sms';
|
||||
|
|
|
@ -26,7 +26,8 @@
|
|||
{"state": "ticket.card.components", "icon": "icon-components"},
|
||||
{"state": "ticket.card.saleTracking", "icon": "assignment"},
|
||||
{"state": "ticket.card.dms.index", "icon": "cloud_download"},
|
||||
{"state": "ticket.card.boxing", "icon": "science"}
|
||||
{"state": "ticket.card.boxing", "icon": "science"},
|
||||
{"state": "ticket.card.sms", "icon": "sms"}
|
||||
]
|
||||
},
|
||||
"keybindings": [
|
||||
|
@ -287,6 +288,15 @@
|
|||
"state": "ticket.advance",
|
||||
"component": "vn-ticket-advance",
|
||||
"description": "Advance tickets"
|
||||
},
|
||||
{
|
||||
"url": "/sms",
|
||||
"state": "ticket.card.sms",
|
||||
"component": "vn-ticket-sms",
|
||||
"description": "Sms",
|
||||
"params": {
|
||||
"ticket": "$ctrl.ticket"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
|
@ -0,0 +1,2 @@
|
|||
<vn-card>
|
||||
</vn-card>
|
|
@ -0,0 +1,21 @@
|
|||
import ngModule from '../module';
|
||||
import Section from 'salix/components/section';
|
||||
|
||||
class Controller extends Section {
|
||||
constructor($element, $) {
|
||||
super($element, $);
|
||||
}
|
||||
|
||||
async $onInit() {
|
||||
this.$state.go('ticket.card.summary', {id: this.$params.id});
|
||||
window.location.href = await this.vnApp.getUrl(`ticket/${this.$params.id}/sms`);
|
||||
}
|
||||
}
|
||||
|
||||
ngModule.vnComponent('vnTicketSms', {
|
||||
template: require('./index.html'),
|
||||
controller: Controller,
|
||||
bindings: {
|
||||
ticket: '<'
|
||||
}
|
||||
});
|
Loading…
Reference in New Issue