-
Notifications
You must be signed in to change notification settings - Fork 4
Conversation
tsinevik
commented
Aug 18, 2021
- Updated add hours layout to new design
- Connected component with backend
# Conflicts: # src/app/modules/user/components/add-hours/add-hours.component.ts # src/app/modules/user/components/attendance/attendance.component.ts
# Conflicts: # src/app/core/services/user/user.service.ts # src/app/modules/user/components/attendance/attendance.component.ts
# Conflicts: # src/app/modules/user/components/add-hours/add-hours.component.ts # src/app/shared/shared.module.ts
…dd-hours-layout # Conflicts: # src/app/modules/user/components/add-hours/add-hours.component.html # src/app/modules/user/components/add-hours/add-hours.component.ts # src/app/modules/user/components/attendance/attendance.component.html
# Conflicts: # src/app/modules/user/components/add-hours/add-hours.component.html # src/app/modules/user/components/add-hours/add-hours.component.ts # src/app/modules/user/components/attendance/attendance.component.ts
# Conflicts: # src/app/data/api/time-service/models/leave-time-info.ts
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Было бы прикольно, если бы ты вкратце объяснил, какая последовательность происходит при работе с блоком добавления часов, типа что за getRecommendedDate и прочие
[timePeriodSelected]='timePeriodSelected' | ||
[projects]='projects$ | async' | ||
></do-user-tasks> | ||
<do-user-tasks class="tasks" [timePeriodSelected]="timePeriodSelected" [projects]="projects$ | async"></do-user-tasks> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
timePeriodSelected и projects можно не передавать, в компоненте дата сама инициализируется и проекты с отсутствиями сами подтягиваются с сервера. И класс тоже вроде ни на что не влияет
task: ['', Validators.required], | ||
description: [''], | ||
}); | ||
this.workTimes$ = this._getWorkTimes(3); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Тут должен быть номер текущего месяца или всё же константный третий?