Skip to content

Commit 8e616ca

Browse files
committed
fix routing to registration in program
1 parent 574566e commit 8e616ca

2 files changed

Lines changed: 3 additions & 4 deletions

File tree

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

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -78,10 +78,7 @@
7878
</app-button>
7979
</a>
8080
} @else {
81-
<a
82-
(click)="checkPrograRegistrationEnded($event)"
83-
[routerLink]="['/office/program', info().id, 'register']"
84-
>
81+
<a (click)="checkPrograRegistrationEnded($event)">
8582
<app-button appearance="outline" size="medium" customTypographyClass="text-body-12">
8683
зарегистрироваться
8784
</app-button>

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -383,6 +383,8 @@ export class DeatilComponent implements OnInit, OnDestroy {
383383
event.preventDefault();
384384
event.stopPropagation();
385385
this.isProgramEndedModalOpen.set(true);
386+
} else {
387+
this.router.navigateByUrl("/office/program/" + this.info().id + "/register");
386388
}
387389
}
388390

0 commit comments

Comments
 (0)