forked from verdnatura/salix-front
Small change
This commit is contained in:
parent
de912b266c
commit
112112b069
|
@ -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');
|
||||||
|
|
|
@ -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"
|
||||||
|
|
Loading…
Reference in New Issue