forked from verdnatura/salix-front
warmFix(ticketSummary): change this. → .value
This commit is contained in:
parent
24818f5daa
commit
046b69d89e
|
@ -16,7 +16,7 @@ export function useUserConfig() {
|
||||||
|
|
||||||
return data;
|
return data;
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
notify('globals.errors.userConfig', 'negative');
|
notify('errors.userConfig', 'negative');
|
||||||
console.error('Error fetching user config:', error);
|
console.error('Error fetching user config:', error);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -49,7 +49,7 @@ async function setData(data) {
|
||||||
function formattedAddress() {
|
function formattedAddress() {
|
||||||
if (!ticket.value) return '';
|
if (!ticket.value) return '';
|
||||||
|
|
||||||
const address = this.ticket.address;
|
const address = ticket.value.address;
|
||||||
const postcode = address.postalCode;
|
const postcode = address.postalCode;
|
||||||
const province = address.province ? `(${address.province.name})` : '';
|
const province = address.province ? `(${address.province.name})` : '';
|
||||||
|
|
||||||
|
@ -58,7 +58,7 @@ function formattedAddress() {
|
||||||
|
|
||||||
function isEditable() {
|
function isEditable() {
|
||||||
try {
|
try {
|
||||||
return !this.ticket.ticketState.state.alertLevel;
|
return !ticket.value.ticketState.state.alertLevel;
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
console.error(e);
|
console.error(e);
|
||||||
}
|
}
|
||||||
|
@ -67,10 +67,10 @@ function isEditable() {
|
||||||
}
|
}
|
||||||
|
|
||||||
async function changeState(value) {
|
async function changeState(value) {
|
||||||
if (!this.ticket.id) return;
|
if (!ticket.value.id) return;
|
||||||
|
|
||||||
const formData = {
|
const formData = {
|
||||||
ticketFk: this.ticket.id,
|
ticketFk: ticket.value.id,
|
||||||
code: value,
|
code: value,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue