Added statistics
- Added total file size statistic - Added total uploads statistic - Added total downloads statistic - Added icons to btns
This commit is contained in:
@ -5,6 +5,7 @@ import axios from "axios";
|
||||
import {NgClass, NgIf} from "@angular/common";
|
||||
import {AuthStore} from "../../store/authStore";
|
||||
import {firstValueFrom} from "rxjs";
|
||||
import {Router} from "@angular/router";
|
||||
|
||||
@Component({
|
||||
selector: 'app-login',
|
||||
@ -23,7 +24,7 @@ export class LoginComponent {
|
||||
loginFailed: boolean = false;
|
||||
loginSuccessful: boolean = false;
|
||||
|
||||
constructor(private developmentStore: DevelopmentStore, private authStore: AuthStore) {
|
||||
constructor(private developmentStore: DevelopmentStore, private authStore: AuthStore, private router: Router) {
|
||||
}
|
||||
|
||||
tryToLogin() {
|
||||
@ -51,6 +52,11 @@ export class LoginComponent {
|
||||
console.log("Login successful");
|
||||
console.log("Token: " + await firstValueFrom(this.authStore.token$));
|
||||
console.log("Username: " + await firstValueFrom(this.authStore.username$));
|
||||
|
||||
//timeout
|
||||
setTimeout(() => {
|
||||
this.router.navigate(['/secure/administration']);
|
||||
}, 1000);
|
||||
}
|
||||
})
|
||||
.catch(error => {
|
||||
|
Reference in New Issue
Block a user