replaced clients/s with customer/s (2)
This commit is contained in:
@ -163,7 +163,7 @@ const newTypeMVT = computed(() => store.state.newTypeMVT);
|
||||
const newNotesMVT = computed(() => store.state.newNotesMVT);
|
||||
const newStepTodo = computed(() => mvtTodos.value.length);
|
||||
const chosenMVTId = computed(() => store.state.chosenMVTId);
|
||||
const clientChanged = computed(() => store.state.clientChanged);
|
||||
const customerChanged = computed(() => store.state.customerChanged);
|
||||
const changedCustomerId = computed(() => store.state.changedCustomerId);
|
||||
|
||||
const darkMode = ref(true)
|
||||
@ -215,7 +215,7 @@ const addMVT = async () => {
|
||||
}
|
||||
}
|
||||
if (newCustomerMVT.value.length === 0) {
|
||||
alert("Please choose a client!");
|
||||
alert("Please choose a customer!");
|
||||
return;
|
||||
}
|
||||
let allFine = true;
|
||||
@ -263,7 +263,7 @@ const addMVT = async () => {
|
||||
// add new row of todo for the new MVT
|
||||
const addRowForNewMVT = async () => {
|
||||
if (newCustomerMVT.value.length === 0) {
|
||||
alert("Please choose a client first!");
|
||||
alert("Please choose a customer first!");
|
||||
return;
|
||||
}
|
||||
await getConfigItemsFromCustomer();
|
||||
@ -367,7 +367,7 @@ const getMvtTodosById = async () => {
|
||||
}
|
||||
}
|
||||
|
||||
//get all config items from the selected client
|
||||
//get all config items from the selected customer
|
||||
const getConfigItemsFromCustomer = async () => {
|
||||
if (!addBool.value) {
|
||||
try {
|
||||
@ -384,7 +384,7 @@ const getConfigItemsFromCustomer = async () => {
|
||||
console.log(err.response.statusText);
|
||||
}
|
||||
}
|
||||
if (clientChanged.value) {
|
||||
if (customerChanged.value) {
|
||||
store.commit('toggleCustomerChanged');
|
||||
}
|
||||
}
|
||||
@ -415,7 +415,7 @@ const deleteMVTTodo = async (id) => {
|
||||
await getMvtTodosById();
|
||||
}
|
||||
|
||||
watch(clientChanged, getMVTById);
|
||||
watch(customerChanged, getMVTById);
|
||||
|
||||
onMounted(() => {
|
||||
getMvtTodosById();
|
||||
|
||||
Reference in New Issue
Block a user