blob: 01ac46800e6d82b7da059176c88a2e94502aa09d [file] [log] [blame]
<material-button
*ngIf="!isLoggedIn"
raised
class="material-drawer-button"
(trigger)="toggleLogin()">
LOGIN
</material-button>
<div *ngIf="isLoggedIn">
<div class="mdc-card mdc-card--outlined" *ngIf="isLoggedIn">
<div class="card-row">
<div *ngIf="subscriptions.isEmpty">{{userEmail}} has no subscriptions</div>
<div *ngIf="subscriptions.isNotEmpty">{{userEmail}} subscribed to:
<ul class="repo-list">
<li *ngFor="let repo of subscriptions.entries; trackBy: trackByKey">
<div>{{repo.key}}</div>
<ul class="label-list">
<li *ngFor="let label of repo.value">
<div>
{{label}}
<material-button icon (trigger)="unsubscribeFrom(repo.key, label)">
<material-icon icon="delete" size="small" baseline></material-icon>
</material-button>
</div>
</li>
</ul>
</li>
</ul>
</div>
</div>
<div class="card-row centered">
<material-dropdown-select
[options]="supportedRepositories"
[(selection)]="selectedRepository"
buttonText="{{selectedRepository}}"
[deselectOnActivate]="false">
</material-dropdown-select>
<material-auto-suggest-input
[selectionOptions]="repoLabels"
[(inputText)]="selectedLabel"
label="label name">
</material-auto-suggest-input>
<material-button
raised
class="subscribe-button blue"
(trigger)="subscribe()">
subscribe
</material-button>
</div>
</div>
<div class="mdc-card mdc-card--outlined margin-before" *ngIf="flutterKeywordLabel.isNotEmpty">
<p class="card-row centered">Subscribing to label <b>{{flutterKeywordLabel}}</b> in <b>flutter/flutter</b> repository would also subscribe you to the following keywords: <b><span *ngFor="let keyword of flutterKeywords; let lastKeyword=last">{{keyword}}<span *ngIf="!lastKeyword">,&#32;</span></span></b></p>
</div>
</div>