Skip to content

Commit 217a7eb

Browse files
committed
fix permissions in news-form & buttons in submit project modal
1 parent 93593c1 commit 217a7eb

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

projects/social_platform/src/app/office/features/detail/detail.component.html

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,7 @@
187187
<app-button
188188
appearance="outline"
189189
[disabled]="true"
190+
style="opacity: 0.5"
190191
size="medium"
191192
customTypographyClass="text-body-12"
192193
>
@@ -248,13 +249,14 @@
248249
</div>
249250
</div>
250251

251-
<div class="cancel__buttons" style="margin: 0">
252+
<div class="cancel__buttons" style="margin: 0; flex-direction: column">
252253
@if (memberProjects.length > 0) {
253254
<app-button
254255
size="medium"
255256
class="cancel__button"
256257
customTypographyClass="text-body-12"
257258
[disabled]="!selectedProjectId"
259+
[style.opacity]="!selectedProjectId ? '0.5' : '1'"
258260
(click)="addProjectModal()"
259261
>
260262
выбрать проект
@@ -264,6 +266,7 @@
264266
}
265267

266268
<app-button
269+
style="margin: 0"
267270
size="medium"
268271
class="cancel__button"
269272
(click)="addNewProject()"

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ <h3 class="text-body-12 about__title">о программе</h3>
4242
}
4343
</div>
4444
<div class="news">
45-
@if (program.isUserManager && !program.isUserMember) {
45+
@if (program.isUserManager) {
4646
<app-news-form class="news__form" (addNews)="onAddNews($event)"></app-news-form>
4747
} @for (n of news(); track n.id) {
4848
<app-program-news-card

0 commit comments

Comments
 (0)