mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-08-19 21:03:17 -07:00
Small fixes #865
This commit is contained in:
parent
95e3c62e30
commit
9bcced3cac
3 changed files with 12 additions and 8 deletions
|
@ -85,10 +85,10 @@
|
||||||
<span class="caret"></span>
|
<span class="caret"></span>
|
||||||
</button>
|
</button>
|
||||||
<ul class="dropdown-menu" aria-labelledby="dropdownMenu1">
|
<ul class="dropdown-menu" aria-labelledby="dropdownMenu1">
|
||||||
<li><a (click)="allSeasons(node.data)">All Seasons</a></li>
|
<li><a href="#" (click)="allSeasons(node.data, $event)">All Seasons</a></li>
|
||||||
<li><a (click)="firstSeason(node.data)">First Season</a></li>
|
<li><a href="#" (click)="firstSeason(node.data, $event)">First Season</a></li>
|
||||||
<li><a (click)="latestSeason(node.data)">Latest Season</a></li>
|
<li><a href="#" (click)="latestSeason(node.data, $event)">Latest Season</a></li>
|
||||||
<li><a (click)="openClosestTab($event)">Select ...</a></li>
|
<li><a href="#" (click)="openClosestTab($event)">Select ...</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
|
@ -49,6 +49,7 @@ export class TvSearchComponent implements OnInit, OnDestroy {
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
public openClosestTab(el: any) {
|
public openClosestTab(el: any) {
|
||||||
|
el.preventDefault();
|
||||||
const rowclass = "undefined";
|
const rowclass = "undefined";
|
||||||
el = el.toElement;
|
el = el.toElement;
|
||||||
while (el.className !== rowclass) {
|
while (el.className !== rowclass) {
|
||||||
|
@ -162,17 +163,20 @@ export class TvSearchComponent implements OnInit, OnDestroy {
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
public allSeasons(searchResult: ISearchTvResult) {
|
public allSeasons(searchResult: ISearchTvResult, event: any) {
|
||||||
|
event.preventDefault();
|
||||||
searchResult.requestAll = true;
|
searchResult.requestAll = true;
|
||||||
this.request(searchResult);
|
this.request(searchResult);
|
||||||
}
|
}
|
||||||
|
|
||||||
public firstSeason(searchResult: ISearchTvResult) {
|
public firstSeason(searchResult: ISearchTvResult, event: any) {
|
||||||
|
event.preventDefault();
|
||||||
searchResult.firstSeason = true;
|
searchResult.firstSeason = true;
|
||||||
this.request(searchResult);
|
this.request(searchResult);
|
||||||
}
|
}
|
||||||
|
|
||||||
public latestSeason(searchResult: ISearchTvResult) {
|
public latestSeason(searchResult: ISearchTvResult, event: any) {
|
||||||
|
event.preventDefault();
|
||||||
searchResult.latestSeason = true;
|
searchResult.latestSeason = true;
|
||||||
this.request(searchResult);
|
this.request(searchResult);
|
||||||
}
|
}
|
||||||
|
|
|
@ -13,7 +13,7 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<small>You can find this here: <a href="https://www.pushbullet.com/#settings/account">https://www.pushbullet.com/#settings/account </a></small>
|
<small>You can find this here: <a href="https://www.pushbullet.com/#settings/account" target="_blank">https://www.pushbullet.com/#settings/account </a></small>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label for="accessToken" class="control-label">Access Token</label>
|
<label for="accessToken" class="control-label">Access Token</label>
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue