Do not show add feed button if feeds.length > 2
This commit is contained in:
parent
f9a4331cb1
commit
fb822f0afc
@ -21,7 +21,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="input-row margin-auto einstellungen_buttons_wrapper">
|
<div class="input-row margin-auto einstellungen_buttons_wrapper" *ngIf="this.feeds.length < 3">
|
||||||
<button routerLink="/einstellungen/editieren" mat-raised-button>
|
<button routerLink="/einstellungen/editieren" mat-raised-button>
|
||||||
<mat-icon>add</mat-icon> RSS-Feed hinzufügen
|
<mat-icon>add</mat-icon> RSS-Feed hinzufügen
|
||||||
</button>
|
</button>
|
||||||
|
|||||||
@ -16,7 +16,7 @@ export class EinstellungenComponent implements OnInit {
|
|||||||
|
|
||||||
icon;
|
icon;
|
||||||
|
|
||||||
feeds: IFeed[];
|
feeds: IFeed[] = [];
|
||||||
|
|
||||||
constructor(private http: HttpClient,
|
constructor(private http: HttpClient,
|
||||||
private _snackbar: MatSnackBar,
|
private _snackbar: MatSnackBar,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user