Do not show add feed button if feeds.length > 2

This commit is contained in:
Tobias Eidelpes 2021-05-03 17:30:38 +02:00
parent f9a4331cb1
commit fb822f0afc
2 changed files with 2 additions and 2 deletions

View File

@ -21,7 +21,7 @@
</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>
<mat-icon>add</mat-icon> RSS-Feed hinzufügen
</button>

View File

@ -16,7 +16,7 @@ export class EinstellungenComponent implements OnInit {
icon;
feeds: IFeed[];
feeds: IFeed[] = [];
constructor(private http: HttpClient,
private _snackbar: MatSnackBar,