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;
|
||||
} catch (error) {
|
||||
notify('globals.errors.userConfig', 'negative');
|
||||
notify('errors.userConfig', 'negative');
|
||||
console.error('Error fetching user config:', error);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -49,7 +49,7 @@ async function setData(data) {
|
|||
function formattedAddress() {
|
||||
if (!ticket.value) return '';
|
||||
|
||||
const address = this.ticket.address;
|
||||
const address = ticket.value.address;
|
||||
const postcode = address.postalCode;
|
||||
const province = address.province ? `(${address.province.name})` : '';
|
||||
|
||||
|
@ -58,7 +58,7 @@ function formattedAddress() {
|
|||
|
||||
function isEditable() {
|
||||
try {
|
||||
return !this.ticket.ticketState.state.alertLevel;
|
||||
return !ticket.value.ticketState.state.alertLevel;
|
||||
} catch (e) {
|
||||
console.error(e);
|
||||
}
|
||||
|
@ -67,10 +67,10 @@ function isEditable() {
|
|||
}
|
||||
|
||||
async function changeState(value) {
|
||||
if (!this.ticket.id) return;
|
||||
if (!ticket.value.id) return;
|
||||
|
||||
const formData = {
|
||||
ticketFk: this.ticket.id,
|
||||
ticketFk: ticket.value.id,
|
||||
code: value,
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue