Merge pull request 'fix: refs #7323 update date on outside' (!1100) from 7323-hotfix-fetchOnOutside into master
gitea/salix-front/pipeline/head This commit looks good
Details
gitea/salix-front/pipeline/head This commit looks good
Details
Reviewed-on: #1100 Reviewed-by: Alex Moreno <alexm@verdnatura.es>
This commit is contained in:
commit
0478fd6ec3
|
@ -103,9 +103,12 @@ const formattedWeekTotalHours = computed(() =>
|
||||||
const onInputChange = async (date) => {
|
const onInputChange = async (date) => {
|
||||||
if (!date) return;
|
if (!date) return;
|
||||||
|
|
||||||
const { year, month, day } = date.scope.timestamp;
|
const { timestamp, outside } = date.scope;
|
||||||
|
const { year, month, day } = timestamp;
|
||||||
const _date = new Date(year, month - 1, day);
|
const _date = new Date(year, month - 1, day);
|
||||||
setDate(_date);
|
setDate(_date);
|
||||||
|
|
||||||
|
if (outside) getMailStates(_date);
|
||||||
};
|
};
|
||||||
|
|
||||||
const setDate = async (date) => {
|
const setDate = async (date) => {
|
||||||
|
|
Loading…
Reference in New Issue