add: alert_list in load & branches
This commit is contained in:
@@ -19,8 +19,6 @@
|
||||
}
|
||||
});
|
||||
|
||||
console.log(props.location);
|
||||
|
||||
defineEmits(['reset-location']);
|
||||
|
||||
const authStore = useAuthStore();
|
||||
@@ -78,7 +76,7 @@
|
||||
locationForm.address = props.location.address;
|
||||
locationForm.description = props.location.description;
|
||||
locationForm.zipcode = props.location.zipcode;
|
||||
console.log(props.location);
|
||||
emails.value = props.location.alert_list || [];
|
||||
} else {
|
||||
Object.assign(locationForm, initState);
|
||||
}
|
||||
@@ -109,8 +107,6 @@
|
||||
alert_list: emails.value.length > 0 ? emails.value : null
|
||||
}
|
||||
|
||||
console.log(branchData);
|
||||
|
||||
let result = 'error';
|
||||
let action = t('directory.msgLocationCreated');
|
||||
loading.value = true;
|
||||
|
||||
@@ -114,6 +114,7 @@ import { validateEmail } from '../helpers/validations';
|
||||
destination.postalCode = loadStore.currentLoad.destination.zipcode;
|
||||
destinationRef.value = loadStore.currentLoad.destination.landmark;
|
||||
locationLoadSelected.value = loadStore.currentLoad?.shipper_warehouse || null; /// Selected warehouse
|
||||
emails.value = loadStore.currentLoad?.alert_list || [];
|
||||
getCoordsMap();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user