replaced clients/s with customer/s (2)
This commit is contained in:
@ -163,7 +163,7 @@ const newDescriptionPOT = computed(() => store.state.newDescriptionPOT);
|
||||
const newNotesPOT = computed(() => store.state.newNotesPOT);
|
||||
const newStepTodo = computed(() => potTodos.value.length);
|
||||
const chosenPOTId = computed(() => store.state.chosenPOTId);
|
||||
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 addPOT = async () => {
|
||||
}
|
||||
}
|
||||
if (newCustomerPOT.value.length === 0) {
|
||||
alert("Please choose a client!");
|
||||
alert("Please choose a customer!");
|
||||
return;
|
||||
}
|
||||
let allFine = true;
|
||||
@ -263,7 +263,7 @@ const addPOT = async () => {
|
||||
// add new row of todo for the new pot
|
||||
const addRowForNewPOT = async () => {
|
||||
if (newCustomerPOT.value.length === 0) {
|
||||
alert("Please choose a client first!");
|
||||
alert("Please choose a customer first!");
|
||||
return;
|
||||
}
|
||||
await getConfigItemsFromCustomer();
|
||||
@ -367,7 +367,7 @@ const getPOTTodosById = 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 deletePOTTodo = async (id) => {
|
||||
await getPOTTodosById();
|
||||
}
|
||||
|
||||
watch(clientChanged, getPOTById);
|
||||
watch(customerChanged, getPOTById);
|
||||
|
||||
onMounted(() => {
|
||||
getPOTTodosById();
|
||||
|
||||
Reference in New Issue
Block a user