mirror of https://github.com/Ombi-app/Ombi
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
55 lines
2.8 KiB
55 lines
2.8 KiB
<settings-menu></settings-menu>
|
|
<div class="small-middle-container">
|
|
<fieldset *ngIf="settings">
|
|
<legend>The Movie Database</legend>
|
|
<div class="md-form-field" style="margin-top:1em;">
|
|
<div class="form-group">
|
|
<div class="checkbox">
|
|
<mat-slide-toggle id="showAdultMovies" name="showAdultMovies" [(ngModel)]="settings.showAdultMovies"
|
|
matTooltip="Include adult movies (pornography) in results">
|
|
Show Adult Movies</mat-slide-toggle>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
<form [formGroup]='tagForm'>
|
|
|
|
<mat-form-field class="example-full-width">
|
|
<input type="text" placeholder="Excluded Keyword IDs for Movie Suggestions" matInput
|
|
formControlName="input" [matAutocomplete]="auto"
|
|
matTooltip="Prevent movies with certain keywords from being suggested. May require a restart to take effect.">
|
|
<mat-autocomplete (optionSelected)="optionSelected($event.option.value)" autoActiveFirstOption
|
|
#auto="matAutocomplete">
|
|
<mat-option *ngFor="let option of filteredTags" [value]="option">
|
|
{{option.name}}
|
|
</mat-option>
|
|
</mat-autocomplete>
|
|
</mat-form-field>
|
|
|
|
<mat-chip-list #chipList>
|
|
<mat-chip *ngFor="let key of excludedKeywords" [selectable]="false" [removable]="true"
|
|
(removed)="remove(key)">
|
|
{{key.name}}
|
|
<i matChipRemove class="fas fa-times fa-lg"></i>
|
|
</mat-chip>
|
|
</mat-chip-list>
|
|
|
|
</form>
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
<div>
|
|
<button mat-raised-button (click)="save()" type="submit" id="save"
|
|
class="mat-focus-indicator mat-stroked-button accent mat-accent mat-raised-button mat-button-base"
|
|
ng-reflect-disabled="false">
|
|
<span class="mat-button-wrapper">Submit</span>
|
|
<div matripple="" class="mat-ripple mat-button-ripple" ng-reflect-disabled="false"
|
|
ng-reflect-centered="false" ng-reflect-trigger="[object HTMLButtonElement]"></div>
|
|
<div class="mat-button-focus-overlay"></div>
|
|
</button>
|
|
<div class="md-form-field" style="margin-top:1em;"></div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</fieldset>
|
|
</div> |