|
@@ -18,7 +18,7 @@ import {
|
|
|
UNIVERISTY,
|
|
|
} from '@core/models/authenticcation.model';
|
|
|
import { takeUntil } from 'rxjs';
|
|
|
-import { ActivatedRoute, Params } from '@angular/router';
|
|
|
+import { ActivatedRoute, Params, Router } from '@angular/router';
|
|
|
import { ToastrService } from 'ngx-toastr';
|
|
|
import { SharedService } from '../../../core/services/shared.service';
|
|
|
|
|
@@ -43,7 +43,8 @@ export class SignupContractorComponent
|
|
|
private readonly authService: AuthService,
|
|
|
private readonly route: ActivatedRoute,
|
|
|
private readonly toastr: ToastrService,
|
|
|
- private readonly sharedService: SharedService
|
|
|
+ private readonly sharedService: SharedService,
|
|
|
+ private readonly router: Router
|
|
|
) {
|
|
|
super();
|
|
|
}
|
|
@@ -170,6 +171,8 @@ export class SignupContractorComponent
|
|
|
}
|
|
|
|
|
|
onSubmit(): void {
|
|
|
+ this.router.navigate(['/auth']);
|
|
|
+
|
|
|
const multiPartForm = new FormData();
|
|
|
if (this.submitValidity(this.form)) {
|
|
|
for (const key in { ...this.form.value }) {
|