fix: workerTimeControl state week colors
gitea/salix-front/pipeline/head This commit looks good Details

This commit is contained in:
Alex Moreno 2025-01-08 12:57:15 +01:00
parent 70f692ffd5
commit e693323166
2 changed files with 2 additions and 3 deletions

View File

@ -345,7 +345,7 @@ const getMailStates = async (date) => {
const prevMonth = month == 1 ? 12 : month - 1;
const params = {
month,
year: selectedDateYear.value,
year: date.getFullYear(),
};
const curMonthStates = (await axios.get(url, { params })).data;

View File

@ -102,8 +102,7 @@ const getWorkWeekElements = () => {
};
const paintWorkWeeks = async () => {
for (var i = 0; i < workWeeksElements.value.length; i++) {
const element = workWeeksElements.value[i];
for (const element of workWeeksElements.value) {
const week = Number(element.innerHTML);
const weekState = workerTimeControlMailsMap.value.get(week);
const { className, title } = stateClasses[weekState] || {};