replaced clients/s with customer/s (2)

This commit is contained in:
Johanna Kuehner
2024-03-04 20:07:31 +01:00
parent 889eb3571f
commit fa29921afe
13 changed files with 77 additions and 77 deletions

View File

@ -165,7 +165,7 @@ const newDescriptionSol = computed(() => store.state.newDescriptionSol);
const newStepTodo = computed(() => solTodos.value.length);
const chosenSolId = computed(() => store.state.chosenSolutionId);
const clientChanged = computed(() => store.state.clientChanged);
const customerChanged = computed(() => store.state.customerChanged);
const changedCustomerId = computed(() => store.state.changedCustomerId);
const darkMode = ref(true)
@ -217,7 +217,7 @@ const addSol = async () => {
}
}
if (newCustomerSol.value.length === 0) {
alert("Please choose a client!");
alert("Please choose a customer!");
return;
}
let allFine = true;
@ -267,7 +267,7 @@ const addSol = async () => {
// add new row of todo for the new solution
const addRowForNewSol = async () => {
if (newCustomerSol.value.length === 0) {
alert("Please choose a client first!");
alert("Please choose a customer first!");
return;
}
await getConfigItemsFromCustomer();
@ -371,7 +371,7 @@ const getSolutionTodosById = async () => {
}
}
//get all config items from the selected client
//get all config items from the selected customer
const getConfigItemsFromCustomer = async () => {
if (!addBool.value) {
try {
@ -388,7 +388,7 @@ const getConfigItemsFromCustomer = async () => {
console.log(err.response.statusText);
}
}
if (clientChanged.value) {
if (customerChanged.value) {
store.commit('toggleCustomerChanged');
}
}
@ -419,7 +419,7 @@ const deleteSolTodo = async (id) => {
await getSolutionTodosById();
}
watch(clientChanged, getSolutionById);
watch(customerChanged, getSolutionById);
onMounted(() => {
getSolutionTodosById();