add: alert_list in load & branches

This commit is contained in:
Alexandro Uc Santos
2025-06-05 20:36:15 -06:00
parent 457bca1ddd
commit bdde72746c
2 changed files with 2 additions and 5 deletions

View File

@@ -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;

View File

@@ -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();
}