Add input for hiding buttons
This commit is contained in:
parent
aea06f94af
commit
4638498a71
@ -9,7 +9,7 @@
|
|||||||
</span>
|
</span>
|
||||||
</h1>
|
</h1>
|
||||||
|
|
||||||
<div class="buttons">
|
<div class="buttons" *ngIf="showButtons">
|
||||||
<button [ngClass]="{ flat: !isActive('dashboard') }"
|
<button [ngClass]="{ flat: !isActive('dashboard') }"
|
||||||
(click)="navigateTo('dashboard')">{{ strings['dashboard'] }}</button>
|
(click)="navigateTo('dashboard')">{{ strings['dashboard'] }}</button>
|
||||||
<button [ngClass]="{ flat: !isActive('boards') }"
|
<button [ngClass]="{ flat: !isActive('boards') }"
|
||||||
|
@ -19,6 +19,9 @@ export class TopNavComponent {
|
|||||||
// tslint:disable-next-line
|
// tslint:disable-next-line
|
||||||
@Input('page-name') pageName: string = '';
|
@Input('page-name') pageName: string = '';
|
||||||
|
|
||||||
|
// tslint:disable-next-line
|
||||||
|
@Input('show-buttons') showButtons: boolean = true;
|
||||||
|
|
||||||
version = '';
|
version = '';
|
||||||
username = '';
|
username = '';
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user