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 week = Number(element.innerHTML);
|
||||
const weekState = workerTimeControlMailsMap.value.get(week);
|
||||
|
||||
const { className, title } = stateClasses[weekState] || {};
|
||||
|
||||
element.classList.remove('confirmed', 'revise', 'sended');
|
||||
|
|
|
@ -275,7 +275,6 @@ const fetchWeekData = async () => {
|
|||
const data = await fetchWorkerTimeControlMails(filter);
|
||||
if (!data.length) {
|
||||
state.value = null;
|
||||
return;
|
||||
} else {
|
||||
const [mail] = data;
|
||||
state.value = mail.state;
|
||||
|
@ -300,7 +299,6 @@ const canBeResend = async () => {
|
|||
};
|
||||
|
||||
const data = await fetchWorkerTimeControlMails(filter);
|
||||
|
||||
if (data.length) canResend.value = true;
|
||||
};
|
||||
|
||||
|
@ -466,7 +464,7 @@ onMounted(async () => {
|
|||
@click="showReasonForm()"
|
||||
/>
|
||||
<QBtn
|
||||
v-if="isHr && state && state !== 'CONFIRMED' && canResend"
|
||||
v-if="isHr && state !== 'CONFIRMED' && canResend"
|
||||
:label="state ? t('Resend') : t('globals.send')"
|
||||
color="primary"
|
||||
type="submit"
|
||||
|
|
Loading…
Reference in New Issue