Add SentComponent for form submission confirmation and integrate with email verification flow

This commit is contained in:
2025-08-23 22:42:18 +02:00
parent 523bf3d43f
commit d1da1296bb
6 changed files with 85 additions and 3 deletions
@@ -0,0 +1,28 @@
import {Component, OnInit} from '@angular/core';
import {Router} from '@angular/router';
import {HeaderComponent} from '@header/header.component';
@Component({
selector: 'app-sent',
imports: [
HeaderComponent
],
templateUrl: './sent.component.html',
styleUrl: './sent.component.scss',
standalone: true
})
export class SentComponent implements OnInit {
protected message: string = "The form is completed and has been sent";
constructor(private router: Router) {
}
ngOnInit() {
const navigation = this.router.getCurrentNavigation();
const state = navigation?.extras.state as { message: string };
if (state?.message) {
this.message = state.message;
}
}
}