Skip to content

Commit

Permalink
fix(plex): Added the watchlist request whole show back into the settings
Browse files Browse the repository at this point in the history
  • Loading branch information
tidusjar committed Dec 21, 2022
1 parent a6274bc commit 10701c4
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 6 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/cypress.yml
Expand Up @@ -43,8 +43,8 @@ jobs:
- name: Run Docker Image
run: nohup docker run --rm -p 5000:5000 ombi &

# - name: Run Wiremock Plex
# run: nohup docker run -it --rm -p 8080:8080 --name wiremock wiremock/wiremock:2.35.0
- name: Run Wiremock Plex
run: nohup docker run -it --rm -p 32400:8080 --name wiremock wiremock/wiremock:2.35.0

- name: Sleep for server to start
run: sleep 20
Expand Down
Expand Up @@ -21,7 +21,7 @@ import { Component, EventEmitter, Input, Output } from "@angular/core";
<input matInput placeholder={{placeholder}} [attr.type]="type" id="{{id}}" name="{{id}}" [ngModel]="value" (ngModelChange)="change($event)" value="{{value}}">
</mat-form-field>
<mat-slide-toggle class="margin" *ngIf="type === 'checkbox'" id="{{id}}" [ngModel]="value" (ngModelChange)="change($event)" [checked]="value"></mat-slide-toggle>
<mat-slide-toggle [disabled]="disabled" class="margin" *ngIf="type === 'checkbox'" id="{{id}}" [ngModel]="value" (ngModelChange)="change($event)" [checked]="value"></mat-slide-toggle>
<ng-content select="[below]"></ng-content>
</div>
Expand All @@ -40,6 +40,7 @@ export class PlexFormFieldComponent {
@Input() public id: string;
@Input() public placeholder: string;
@Input() public type: "input" | "checkbox" | "password" = "input"
@Input() public disabled = false;

public change(newValue: string) {
this.value = newValue;
Expand Down
11 changes: 8 additions & 3 deletions src/Ombi/ClientApp/src/app/settings/plex/plex.component.html
Expand Up @@ -14,12 +14,17 @@
<small bottom>When a Plex User adds something to their watchlist in Plex, it will turn up in Ombi as a Request if enabled. This <b>only</b> applies to users that are logging in with their Plex Account
<br>Request limits if set are all still applied
</small>
</settings-plex-form-field>

</settings-plex-form-field>

<settings-plex-form-field [disabled]="!settings.enableWatchlistImport" [label]="'Watchlist - Request Whole Show'" disabled [type]="'checkbox'" [id]="'monitorAll'" [(value)]="settings.monitorAll">
<small bottom>If enabled then watchlist requests for TV Shows will request the <strong><em>whole</em></strong> show. If not enabled it will only request the latest season.
</small>
</settings-plex-form-field>



<hr>

<div class="row">
<div class="col-md-7">
<h2 style="margin: 1em 0 0 0;">Servers</h2>
Expand Down

0 comments on commit 10701c4

Please sign in to comment.