mirror of
https://github.com/simon987/task_tracker.git
synced 2025-12-18 09:19:04 +00:00
Clear old monitoring snapshots, logout endpoint
This commit is contained in:
@@ -0,0 +1,3 @@
|
||||
mat-divider {
|
||||
margin: 1em 0 !important;
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<div class="container">
|
||||
<mat-card class="mat-elevation-z8" *ngIf="account">
|
||||
<mat-card class="mat-elevation-z8" *ngIf="authService.account">
|
||||
|
||||
<mat-card-header>
|
||||
<mat-card-title>{{"account.title" | translate}}</mat-card-title>
|
||||
@@ -11,19 +11,22 @@
|
||||
<mat-list>
|
||||
<mat-list-item>
|
||||
{{"account.username" | translate}}:
|
||||
<pre>{{account.username}}</pre>
|
||||
<pre>{{authService.account.username}}</pre>
|
||||
</mat-list-item>
|
||||
</mat-list>
|
||||
|
||||
<mat-expansion-panel>
|
||||
<mat-expansion-panel-header>{{"account.metadata" | translate}}</mat-expansion-panel-header>
|
||||
<pre> {{account | json}}</pre>
|
||||
<pre> {{authService.account | json}}</pre>
|
||||
</mat-expansion-panel>
|
||||
|
||||
<mat-divider class="divider" [inset]="true"></mat-divider>
|
||||
|
||||
</mat-card-content>
|
||||
|
||||
<mat-card-actions>
|
||||
|
||||
|
||||
<button mat-raised-button color="primary" (click)="logout()">{{"account.logout" | translate}}</button>
|
||||
</mat-card-actions>
|
||||
</mat-card>
|
||||
</div>
|
||||
|
||||
|
||||
@@ -8,13 +8,13 @@ import {AuthService} from "../auth.service";
|
||||
})
|
||||
export class AccountDetailsComponent implements OnInit {
|
||||
|
||||
account: Manager;
|
||||
|
||||
constructor(private authService: AuthService) {
|
||||
constructor(public authService: AuthService) {
|
||||
}
|
||||
|
||||
ngOnInit() {
|
||||
this.account = this.authService.account;
|
||||
}
|
||||
|
||||
public logout() {
|
||||
this.authService.logout();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user