Added top bar on all pages. Simplified TTS login component. Fixed some issues. Removed redirects for now.
This commit is contained in:
28
src/app/navigation/topbar/topbar.component.html
Normal file
28
src/app/navigation/topbar/topbar.component.html
Normal file
@ -0,0 +1,28 @@
|
||||
<mat-toolbar class="top">
|
||||
<button mat-icon-button
|
||||
(click)="toggleSidebar()">
|
||||
<mat-icon>menu</mat-icon>
|
||||
</button>
|
||||
|
||||
<span>Tom-to-Speech</span>
|
||||
@if (isTTSLoggedIn) {
|
||||
<span class="spacer"></span>
|
||||
<div class="links">
|
||||
@if (showImpersonation) {
|
||||
<impersonation />
|
||||
} @else {
|
||||
<div class="userInfo">
|
||||
<span class="username">{{impersonatedName ?? username}}</span>
|
||||
@if (impersonatedId) {
|
||||
<br />
|
||||
<span class="impersonated">Impersonating from {{username}}</span>
|
||||
}
|
||||
</div>
|
||||
}
|
||||
<button mat-icon-button
|
||||
(click)="showImpersonation = !showImpersonation">
|
||||
<mat-icon>supervisor_account</mat-icon>
|
||||
</button>
|
||||
</div>
|
||||
}
|
||||
</mat-toolbar>
|
Reference in New Issue
Block a user