Merge pull request '3033-price_and_discount_ticket_sale_popover' (#707) from 3033-price_and_discount_ticket_sale_popover into dev
gitea/salix/pipeline/head This commit looks good
Details
gitea/salix/pipeline/head This commit looks good
Details
Reviewed-on: #707 Reviewed-by: Joan Sanchez <joan@verdnatura.es>
This commit is contained in:
commit
4628c8ab6f
|
@ -47,7 +47,13 @@ class Controller extends Section {
|
|||
|
||||
getMana() {
|
||||
this.$http.get(`Tickets/${this.$params.id}/getSalesPersonMana`)
|
||||
.then(res => this.edit.mana = res.data);
|
||||
.then(res => {
|
||||
this.edit.mana = res.data;
|
||||
this.$.$applyAsync(() => {
|
||||
this.$.editDiscount.relocate();
|
||||
this.$.editPricePopover.relocate();
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -42,6 +42,8 @@ describe('Ticket', () => {
|
|||
$scope.sms = {open: () => {}};
|
||||
$scope.ticket = ticket;
|
||||
$scope.model = crudModel;
|
||||
$scope.editDiscount = {relocate: () => {}};
|
||||
$scope.editPricePopover = {relocate: () => {}};
|
||||
$httpBackend = _$httpBackend_;
|
||||
Object.defineProperties($state.params, {
|
||||
id: {
|
||||
|
|
Loading…
Reference in New Issue