ticket.sale ok state fixed
gitea/salix/master This commit looks good
Details
gitea/salix/master This commit looks good
Details
This commit is contained in:
parent
81072ce7e8
commit
9db989d191
|
@ -20,6 +20,11 @@ class Controller {
|
|||
this._sales = [];
|
||||
this.imagesPath = '//verdnatura.es/vn-image-data/catalog';
|
||||
}
|
||||
isTicketEditable() {
|
||||
this.$http.get(`/api/Tickets/${this.$state.params.id}/isEditable`).then(res => {
|
||||
this.isEditable = res.data;
|
||||
});
|
||||
}
|
||||
|
||||
get ticket() {
|
||||
return this._ticket;
|
||||
|
@ -27,7 +32,7 @@ class Controller {
|
|||
|
||||
set ticket(value) {
|
||||
this._ticket = value;
|
||||
this.isEditable();
|
||||
this.isTicketEditable();
|
||||
}
|
||||
|
||||
get sales() {
|
||||
|
@ -94,11 +99,6 @@ class Controller {
|
|||
callback.call(this);
|
||||
}
|
||||
|
||||
isEditable() {
|
||||
this.$http.get(`/api/Tickets/${this.$state.params.id}/isEditable`).then(res => {
|
||||
this.isEditable = res.data;
|
||||
});
|
||||
}
|
||||
get isChecked() {
|
||||
if (this.sales) {
|
||||
for (let instance of this.sales)
|
||||
|
|
Loading…
Reference in New Issue