parent
f7d454478b
commit
59d99db6b4
|
@ -55,13 +55,13 @@
|
|||
<vn-icon
|
||||
ng-show="ticket.hasTicketRequest"
|
||||
class="bright"
|
||||
vn-tooltip="{{ticket.hasTicketRequest}}"
|
||||
vn-tooltip="Purchase request"
|
||||
icon="icon-100">
|
||||
</vn-icon>
|
||||
<vn-icon
|
||||
ng-show="ticket.isAvailable === 0"
|
||||
class="bright"
|
||||
vn-tooltip="{{ticket.isAvailable}}"
|
||||
vn-tooltip="Not available"
|
||||
icon="icon-unavailable">
|
||||
</vn-icon>
|
||||
<vn-icon
|
||||
|
@ -73,7 +73,7 @@
|
|||
<vn-icon
|
||||
ng-show="ticket.risk"
|
||||
class="bright"
|
||||
vn-tooltip="Risk : {{ticket.risk}}"
|
||||
vn-tooltip="{{::$ctrl.$translate.instant('Risk')}}: {{ticket.risk}}"
|
||||
icon="icon-risk">
|
||||
</vn-icon>
|
||||
</vn-td>
|
||||
|
|
|
@ -2,8 +2,9 @@ import ngModule from '../module';
|
|||
import './style.scss';
|
||||
|
||||
export default class Controller {
|
||||
constructor($scope, $state, $stateParams) {
|
||||
constructor($scope, $state, $stateParams, $translate) {
|
||||
this.$ = $scope;
|
||||
this.$translate = $translate;
|
||||
this.$stateParams = $stateParams;
|
||||
this.$state = $state;
|
||||
this.selectedTicket = null;
|
||||
|
@ -41,9 +42,9 @@ export default class Controller {
|
|||
}
|
||||
|
||||
goToLines(event, ticketFk) {
|
||||
event.preventDefault();
|
||||
event.stopImmediatePropagation();
|
||||
this.$state.go('ticket.card.sale', {id: ticketFk});
|
||||
this.preventDefault(event);
|
||||
let url = this.$state.href('ticket.card.sale', {id: ticketFk}, {absolute: true});
|
||||
window.open(url, '_blank');
|
||||
}
|
||||
|
||||
goToTurns() {
|
||||
|
@ -85,30 +86,32 @@ export default class Controller {
|
|||
}
|
||||
|
||||
showClientDescriptor(event, clientFk) {
|
||||
event.preventDefault();
|
||||
event.stopImmediatePropagation();
|
||||
this.preventDefault(event);
|
||||
this.$.clientDescriptor.clientFk = clientFk;
|
||||
this.$.clientDescriptor.parent = event.target;
|
||||
this.$.clientDescriptor.show();
|
||||
}
|
||||
|
||||
showWorkerDescriptor(event, userId) {
|
||||
event.preventDefault();
|
||||
event.stopImmediatePropagation();
|
||||
this.preventDefault(event);
|
||||
this.selectedWorker = userId;
|
||||
this.$.workerDescriptor.parent = event.target;
|
||||
this.$.workerDescriptor.show();
|
||||
}
|
||||
|
||||
preview(event, ticket) {
|
||||
event.preventDefault();
|
||||
event.stopImmediatePropagation();
|
||||
this.preventDefault(event);
|
||||
this.selectedTicket = ticket;
|
||||
this.$.summary.show();
|
||||
}
|
||||
|
||||
preventDefault(event) {
|
||||
event.preventDefault();
|
||||
event.stopImmediatePropagation();
|
||||
}
|
||||
}
|
||||
|
||||
Controller.$inject = ['$scope', '$state', '$stateParams'];
|
||||
Controller.$inject = ['$scope', '$state', '$stateParams', '$translate'];
|
||||
|
||||
ngModule.component('vnTicketIndex', {
|
||||
template: require('./index.html'),
|
||||
|
|
|
@ -1,2 +1,3 @@
|
|||
Turns: Turnos
|
||||
Go to lines: Ir a lineas
|
||||
Go to lines: Ir a lineas
|
||||
Not available: No disponible
|
Loading…
Reference in New Issue