Skip to content

Commit b09b37b

Browse files
committed
Merge branch 'master' into kanban-board
2 parents eb656f3 + e3cbe2c commit b09b37b

27 files changed

Lines changed: 638 additions & 338 deletions

projects/social_platform/src/app/office/features/info-card/info-card.component.html

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -239,17 +239,19 @@ <h3>Вы действительно хотите отписаться от пр
239239
<div class="unsubscribe-modal__buttons">
240240
<app-button
241241
color="red"
242+
size="big"
242243
customTypographyClass="unsubscribe-modal-btn__typography"
243244
(click)="onUnsubscribe($event, info?.id!)"
244245
[disabled]="!info?.id"
245246
>
246-
Отписаться
247+
отписаться
247248
</app-button>
248249
<app-button
250+
size="big"
249251
customTypographyClass="unsubscribe-modal-btn__typography"
250252
(click)="onCloseUnsubscribeModal()"
251253
>
252-
Отменить
254+
отменить
253255
</app-button>
254256
</div>
255257
</div>

projects/social_platform/src/app/office/features/info-card/info-card.component.scss

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,6 @@
118118
}
119119

120120
&__name {
121-
max-width: 120px;
122121
margin-bottom: 3px;
123122
overflow: hidden;
124123
color: var(--black);

projects/social_platform/src/app/office/features/project-rating/components/range-criterion-input/range-criterion-input.component.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
[min]="0"
88
[max]="max"
99
[step]="1"
10+
[disabled]="disabled"
1011
(input)="onInput($event)"
1112
(keydown)="onKeydown($event)"
1213
(blur)="onBlur()"

projects/social_platform/src/app/office/features/project-rating/project-rating.component.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
class="rating__input"
88
[max]="criterion.maxValue!"
99
[formControlName]="criterion.id"
10+
[disabled]="disabled"
1011
></app-range-criterion-input>
1112
<label class="text-body-10">{{ criterion.name }}</label>
1213
</div>
@@ -15,6 +16,7 @@
1516
<app-boolean-criterion
1617
class="rating__input"
1718
[formControlName]="criterion.id"
19+
[disabled]="disabled"
1820
></app-boolean-criterion>
1921
<label class="text-body-10">{{ criterion.name }}</label>
2022
</div>

projects/social_platform/src/app/office/features/project-rating/project-rating.component.scss

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
&__columns {
1212
display: flex;
1313
flex-direction: column;
14-
align-items: center;
1514
}
1615

1716
&__field {

projects/social_platform/src/app/office/features/project-rating/project-rating.component.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,8 @@ export class ProjectRatingComponent implements OnDestroy, ControlValueAccessor,
102102

103103
private _disabled = false;
104104

105+
@Input() currentUserId!: number;
106+
105107
/** Сигнал для хранения критериев оценки */
106108
_criteria = signal<ProjectRatingCriterion[]>([]);
107109

projects/social_platform/src/app/office/program/detail/list/list.component.html

Lines changed: 7 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
</div>
1414

1515
<div class="filter-toggle page__filter-toggle" (click)="isFilterOpen = !isFilterOpen">
16-
<span>Фильтр</span>
16+
<span>Фильтры</span>
1717
<i appIcon icon="filter" appSquare="34"></i>
1818
</div>
1919

@@ -40,7 +40,7 @@
4040
@if (listType !== 'members') {
4141
<div class="page__create">
4242
<div class="page__left">
43-
@if (listType === 'projects') {
43+
@if (listType === 'projects' || listType === 'rating') {
4444
<div class="filter page__filter" [class.page__filter--open]="isFilterOpen">
4545
<div class="filter__overlay" (click)="isFilterOpen = false"></div>
4646
<div class="filter__body" #filterBody>
@@ -50,19 +50,13 @@
5050
(touchmove)="onSwipeMove($event)"
5151
(touchend)="onSwipeEnd($event)"
5252
></div>
53-
<app-projects-filter (closeFilter)="closeFilter()"></app-projects-filter>
53+
<app-projects-filter
54+
[listType]="listType"
55+
(closeFilter)="closeFilter()"
56+
(clear)="onClearFilters()"
57+
></app-projects-filter>
5458
</div>
5559
</div>
56-
} @else {
57-
<form class="filter__form" [formGroup]="filterForm">
58-
<p class="text-body-12">фильтр</p>
59-
<div class="filter__controls">
60-
<label class="filter__tags" (click)="setValue($event)">
61-
<app-checkbox [checked]="this.filterForm.get('filterTag')?.value"></app-checkbox>
62-
<p class="text-body-12">проекты с оценкой</p>
63-
</label>
64-
</div>
65-
</form>
6660
}
6761
</div>
6862
</div>

projects/social_platform/src/app/office/program/detail/list/list.component.scss

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@
3131

3232
&__list {
3333
display: grid;
34-
flex-grow: 1;
3534
grid-template-columns: 1fr;
3635
row-gap: 50px;
3736
column-gap: 20px;
@@ -88,23 +87,6 @@
8887
}
8988
}
9089

91-
&__controls {
92-
display: flex;
93-
flex-direction: column;
94-
gap: 14px;
95-
margin-top: 18px;
96-
}
97-
98-
&__tags {
99-
display: flex;
100-
gap: 12px;
101-
align-items: center;
102-
103-
p {
104-
color: var(--grey-for-text);
105-
}
106-
}
107-
10890
&__bar {
10991
position: fixed;
11092
display: flex;

0 commit comments

Comments
 (0)