feat(ticket): default ticketAction for salesAssistant
gitea/salix/pipeline/head This commit looks good Details

This commit is contained in:
Alex Moreno 2021-11-18 14:27:05 +01:00
parent ba60523012
commit caf6320d53
1 changed files with 3 additions and 1 deletions

View File

@ -23,7 +23,9 @@ class Controller extends Component {
}
loadDefaultTicketAction() {
let filter = {where: {code: 'changePrice'}};
const isSalesAssistant = this.aclService.hasAny(['salesAssistant']);
const defaultOption = isSalesAssistant ? 'turnInMana' : 'changePrice';
const filter = {where: {code: defaultOption}};
this.$http.get(`TicketUpdateActions`, {filter}).then(response => {
return this.ticket.option = response.data[0].id;