0
0
Fork 0

Small change

This commit is contained in:
William Buezas 2024-03-27 09:13:53 -03:00
parent de912b266c
commit 112112b069
2 changed files with 1 additions and 4 deletions

View File

@ -107,7 +107,6 @@ const paintWorkWeeks = async () => {
const element = workWeeksElements.value[i]; const element = workWeeksElements.value[i];
const week = Number(element.innerHTML); const week = Number(element.innerHTML);
const weekState = workerTimeControlMailsMap.value.get(week); const weekState = workerTimeControlMailsMap.value.get(week);
const { className, title } = stateClasses[weekState] || {}; const { className, title } = stateClasses[weekState] || {};
element.classList.remove('confirmed', 'revise', 'sended'); element.classList.remove('confirmed', 'revise', 'sended');

View File

@ -275,7 +275,6 @@ const fetchWeekData = async () => {
const data = await fetchWorkerTimeControlMails(filter); const data = await fetchWorkerTimeControlMails(filter);
if (!data.length) { if (!data.length) {
state.value = null; state.value = null;
return;
} else { } else {
const [mail] = data; const [mail] = data;
state.value = mail.state; state.value = mail.state;
@ -300,7 +299,6 @@ const canBeResend = async () => {
}; };
const data = await fetchWorkerTimeControlMails(filter); const data = await fetchWorkerTimeControlMails(filter);
if (data.length) canResend.value = true; if (data.length) canResend.value = true;
}; };
@ -466,7 +464,7 @@ onMounted(async () => {
@click="showReasonForm()" @click="showReasonForm()"
/> />
<QBtn <QBtn
v-if="isHr && state && state !== 'CONFIRMED' && canResend" v-if="isHr && state !== 'CONFIRMED' && canResend"
:label="state ? t('Resend') : t('globals.send')" :label="state ? t('Resend') : t('globals.send')"
color="primary" color="primary"
type="submit" type="submit"