Merge branch 'test' into dev

This commit is contained in:
Gerard 2019-02-07 09:40:28 +01:00
commit 3610ce88d7
3 changed files with 8 additions and 5 deletions

View File

@ -76,8 +76,8 @@
<vn-td number>{{::ticket.total | currency: 'EUR': 2}}</vn-td>
<vn-td number>
<vn-icon-button
ng-click="$ctrl.goToLines(ticket.id)"
vn-tooltip="Preview"
ng-click="$ctrl.goToLines($event, ticket.id)"
vn-tooltip="Go to lines"
icon="icon-lines">
</vn-icon-button>
<vn-icon-button

View File

@ -44,8 +44,10 @@ export default class Controller {
this.$.model.clear();
}
goToLines(ticketFk) {
this.$state.go('ticket.card.lines', {id: ticketFk});
goToLines(event, ticketFk) {
event.preventDefault();
event.stopImmediatePropagation();
this.$state.go('ticket.card.sale', {id: ticketFk});
}
goToTurns() {

View File

@ -1 +1,2 @@
Turns: Turnos
Turns: Turnos
Go to lines: Ir a lineas