Add disconnection and minor improvements on login page.
This commit is contained in:
@@ -0,0 +1,2 @@
|
||||
<h1>Disconnection...</h1>
|
||||
<mat-spinner></mat-spinner>
|
||||
@@ -0,0 +1,6 @@
|
||||
:host {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
}
|
||||
@@ -0,0 +1,21 @@
|
||||
import { Component, OnInit, inject } from '@angular/core';
|
||||
import {MatProgressSpinnerModule} from '@angular/material/progress-spinner';
|
||||
import { AuthenticationService } from '../../core/service/authentication.service';
|
||||
import { Router } from '@angular/router';
|
||||
|
||||
@Component({
|
||||
selector: 'app-disconnection',
|
||||
standalone: true,
|
||||
imports: [MatProgressSpinnerModule],
|
||||
templateUrl: './disconnection.component.html',
|
||||
styleUrl: './disconnection.component.scss'
|
||||
})
|
||||
export class DisconnectionComponent implements OnInit {
|
||||
private authenticationService = inject(AuthenticationService);
|
||||
private router = inject(Router);
|
||||
|
||||
ngOnInit(): void {
|
||||
this.authenticationService.unauthenticate();
|
||||
this.router.navigate(['/home']);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user