3033-price_and_discount_ticket_sale_popover #707
|
@ -47,7 +47,13 @@ class Controller extends Section {
|
||||||
|
|
||||||
getMana() {
|
getMana() {
|
||||||
this.$http.get(`Tickets/${this.$params.id}/getSalesPersonMana`)
|
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.sms = {open: () => {}};
|
||||||
$scope.ticket = ticket;
|
$scope.ticket = ticket;
|
||||||
$scope.model = crudModel;
|
$scope.model = crudModel;
|
||||||
|
$scope.editDiscount = {relocate: () => {}};
|
||||||
|
$scope.editPricePopover = {relocate: () => {}};
|
||||||
$httpBackend = _$httpBackend_;
|
$httpBackend = _$httpBackend_;
|
||||||
Object.defineProperties($state.params, {
|
Object.defineProperties($state.params, {
|
||||||
id: {
|
id: {
|
||||||
|
|
Loading…
Reference in New Issue