Fixed the radarr not enabled issue

This commit is contained in:
Jamie Rees 2020-05-19 21:40:10 +01:00
commit 4bdb944efc
16 changed files with 293 additions and 368 deletions

View file

@ -5,11 +5,6 @@
margin-top: 10px; margin-top: 10px;
} }
::ng-deep .dark .small-middle-container{
background-color: rgba(0, 0, 0, 0.10);
padding: 2em;
}
.control-label { .control-label {
font-weight: 400; font-weight: 400;
} }

View file

@ -4,11 +4,6 @@
margin-top: 10px; margin-top: 10px;
} }
::ng-deep .dark .small-middle-container{
background-color: rgba(0, 0, 0, 0.10);
padding: 2em;
}
::ng-deep .dark .btn:hover { ::ng-deep .dark .btn:hover {
box-shadow: 0 5px 11px 0 rgba(255, 255, 255, 0.18), 0 4px 15px 0 rgba(255, 255, 255, 0.15); box-shadow: 0 5px 11px 0 rgba(255, 255, 255, 0.18), 0 4px 15px 0 rgba(255, 255, 255, 0.15);
color: inherit; color: inherit;
@ -17,6 +12,7 @@
.col-md-6 { .col-md-6 {
display: contents; display: contents;
} }
.col-md-4 { .col-md-4 {
display: contents; display: contents;
} }
@ -25,7 +21,6 @@
.col-md-6 { .col-md-6 {
display: inline-table; display: inline-table;
} }
.col-md-4 { .col-md-4 {
display: inline-table; display: inline-table;
} }

View file

@ -31,11 +31,6 @@ textarea {
background-color: #1b9d1b; background-color: #1b9d1b;
} }
::ng-deep .dark .small-middle-container{
background-color: rgba(0, 0, 0, 0.10);
padding: 2em;
}
::ng-deep .dark .btn:hover { ::ng-deep .dark .btn:hover {
box-shadow: 0 5px 11px 0 rgba(255, 255, 255, 0.18), 0 4px 15px 0 rgba(255, 255, 255, 0.15); box-shadow: 0 5px 11px 0 rgba(255, 255, 255, 0.18), 0 4px 15px 0 rgba(255, 255, 255, 0.15);
color: inherit; color: inherit;

View file

@ -5,11 +5,6 @@
margin-top: 10px; margin-top: 10px;
} }
::ng-deep .dark .small-middle-container{
background-color: rgba(0, 0, 0, 0.10);
padding: 2em;
}
::ng-deep .dark .btn:hover { ::ng-deep .dark .btn:hover {
box-shadow: 0 5px 11px 0 rgba(255, 255, 255, 0.18), 0 4px 15px 0 rgba(255, 255, 255, 0.15); box-shadow: 0 5px 11px 0 rgba(255, 255, 255, 0.18), 0 4px 15px 0 rgba(255, 255, 255, 0.15);
color: inherit; color: inherit;

View file

@ -12,6 +12,7 @@
.col-md-2 { .col-md-2 {
display: contents; display: contents;
} }
.control-label { .control-label {
font-weight: 400; font-weight: 400;
} }
@ -28,11 +29,6 @@
background-color: #1b9d1b; background-color: #1b9d1b;
} }
::ng-deep .dark .small-middle-container{
background-color: rgba(0, 0, 0, 0.10);
padding: 2em;
}
::ng-deep .dark .btn:hover { ::ng-deep .dark .btn:hover {
box-shadow: 0 5px 11px 0 rgba(255, 255, 255, 0.18), 0 4px 15px 0 rgba(255, 255, 255, 0.15); box-shadow: 0 5px 11px 0 rgba(255, 255, 255, 0.18), 0 4px 15px 0 rgba(255, 255, 255, 0.15);
color: inherit; color: inherit;

View file

@ -12,9 +12,11 @@
.col-md-6 { .col-md-6 {
display: contents; display: contents;
} }
.col-md-9 { .col-md-9 {
display: inline-table; display: inline-table;
} }
.col-md-3 { .col-md-3 {
display: inline-table; display: inline-table;
} }
@ -31,11 +33,6 @@
background-color: #1b9d1b; background-color: #1b9d1b;
} }
::ng-deep .dark .small-middle-container{
background-color: rgba(0, 0, 0, 0.10);
padding: 2em;
}
::ng-deep .dark .categoryResults { ::ng-deep .dark .categoryResults {
background-color: rgba(0, 0, 0, 0.05); background-color: rgba(0, 0, 0, 0.05);
padding: 1em; padding: 1em;
@ -45,6 +42,7 @@
box-shadow: 0 5px 11px 0 rgba(255, 255, 255, 0.18), 0 4px 15px 0 rgba(255, 255, 255, 0.15); box-shadow: 0 5px 11px 0 rgba(255, 255, 255, 0.18), 0 4px 15px 0 rgba(255, 255, 255, 0.15);
color: inherit; color: inherit;
} }
@media (min-width:1440px) { @media (min-width:1440px) {
.col-md-6 { .col-md-6 {
display: inline-table; display: inline-table;

View file

@ -29,11 +29,6 @@
background-color: #1b9d1b; background-color: #1b9d1b;
} }
::ng-deep .dark .small-middle-container{
background-color: rgba(0, 0, 0, 0.10);
padding: 2em;
}
::ng-deep .dark .btn:hover { ::ng-deep .dark .btn:hover {
box-shadow: 0 5px 11px 0 rgba(255, 255, 255, 0.18), 0 4px 15px 0 rgba(255, 255, 255, 0.15); box-shadow: 0 5px 11px 0 rgba(255, 255, 255, 0.18), 0 4px 15px 0 rgba(255, 255, 255, 0.15);
color: inherit; color: inherit;
@ -43,7 +38,6 @@
.col-md-6 { .col-md-6 {
display: inline-table; display: inline-table;
} }
.col-md-5 { .col-md-5 {
display: inline-table; display: inline-table;
} }

View file

@ -29,11 +29,6 @@
background-color: #1b9d1b; background-color: #1b9d1b;
} }
::ng-deep .dark .small-middle-container{
background-color: rgba(0, 0, 0, 0.10);
padding: 2em;
}
::ng-deep .dark .btn:hover { ::ng-deep .dark .btn:hover {
box-shadow: 0 5px 11px 0 rgba(255, 255, 255, 0.18), 0 4px 15px 0 rgba(255, 255, 255, 0.15); box-shadow: 0 5px 11px 0 rgba(255, 255, 255, 0.18), 0 4px 15px 0 rgba(255, 255, 255, 0.15);
color: inherit; color: inherit;
@ -43,7 +38,6 @@
.col-md-6 { .col-md-6 {
display: inline-table; display: inline-table;
} }
.col-md-5 { .col-md-5 {
display: inline-table; display: inline-table;
} }

View file

@ -2,12 +2,17 @@
<div *ngIf="form" class="small-middle-container"> <div *ngIf="form" class="small-middle-container">
<fieldset> <fieldset>
<legend>Radarr Settings</legend> <legend>Radarr Settings</legend>
<form novalidate [formGroup]="form" (ngSubmit)="onSubmit(form)" style="padding-top:2%;">
<div style="float: right;"> <div style="float: right;">
<div class="md-form-field"><mat-slide-toggle formControlName="enabled">Enable</mat-slide-toggle></div> <div class="md-form-field">
<div class="md-form-field"><mat-slide-toggle [(ngModel)]="advanced">Advanced</mat-slide-toggle></div> <mat-slide-toggle formControlName="enabled">Enable</mat-slide-toggle>
</div>
<div class="md-form-field">
<mat-slide-toggle [(ngModel)]="advanced">Advanced</mat-slide-toggle>
</div>
</div> </div>
<div class="col-md-12"> <div class="col-md-12">
<form novalidate [formGroup]="form" (ngSubmit)="onSubmit(form)" style="padding-top:2%;">
<div class="col-md-5"> <div class="col-md-5">
<div class="md-form-field"> <div class="md-form-field">
<mat-form-field> <mat-form-field>
@ -103,7 +108,7 @@
</div> </div>
</div> </div>
</form>
</div> </div>
</form>
</fieldset> </fieldset>
</div> </div>

View file

@ -25,11 +25,6 @@
display: block; display: block;
} }
::ng-deep .dark .small-middle-container{
background-color: rgba(0, 0, 0, 0.10);
padding: 2em;
}
::ng-deep .dark .btn:hover { ::ng-deep .dark .btn:hover {
box-shadow: 0 5px 11px 0 rgba(255, 255, 255, 0.18), 0 4px 15px 0 rgba(255, 255, 255, 0.15); box-shadow: 0 5px 11px 0 rgba(255, 255, 255, 0.18), 0 4px 15px 0 rgba(255, 255, 255, 0.15);
color: inherit; color: inherit;
@ -45,11 +40,9 @@
.col-md-6 { .col-md-6 {
display: inline-table; display: inline-table;
} }
.col-md-5 { .col-md-5 {
display: inline-table; display: inline-table;
} }
.col-md-4 { .col-md-4 {
display: inline-table; display: inline-table;
} }

View file

@ -4,11 +4,6 @@
margin-top: 10px; margin-top: 10px;
} }
::ng-deep .dark .small-middle-container{
background-color: rgba(0, 0, 0, 0.10);
padding: 2em;
}
::ng-deep .dark .btn:hover { ::ng-deep .dark .btn:hover {
box-shadow: 0 5px 11px 0 rgba(255, 255, 255, 0.18), 0 4px 15px 0 rgba(255, 255, 255, 0.15); box-shadow: 0 5px 11px 0 rgba(255, 255, 255, 0.18), 0 4px 15px 0 rgba(255, 255, 255, 0.15);
color: inherit; color: inherit;

View file

@ -2,11 +2,11 @@
<div *ngIf="form" class="small-middle-container"> <div *ngIf="form" class="small-middle-container">
<fieldset> <fieldset>
<legend>Sonarr Settings</legend> <legend>Sonarr Settings</legend>
<form novalidate [formGroup]="form" (ngSubmit)="onSubmit(form)" style="padding-top:3%;">
<div style="float: right;"> <div style="float: right;">
<span style="vertical-align: top;">Advanced</span> <span style="vertical-align: top;">Advanced</span>
<p-inputSwitch id="customInputSwitch" [(ngModel)]="advanced"></p-inputSwitch> <p-inputSwitch id="customInputSwitch" [(ngModel)]="advanced"></p-inputSwitch>
</div> </div>
<form novalidate [formGroup]="form" (ngSubmit)="onSubmit(form)" style="padding-top:3%;">
<div class="col-md-6" style="display:block;"> <div class="col-md-6" style="display:block;">
<div class="col-md-4"> <div class="col-md-4">
@ -43,8 +43,7 @@
<i *ngIf="form.get('ip').hasError('required')" class="fa fa-exclamation-circle error-text" pTooltip="The IP/Hostname is required"></i> <i *ngIf="form.get('ip').hasError('required')" class="fa fa-exclamation-circle error-text" pTooltip="The IP/Hostname is required"></i>
</label> </label>
<input type="text" class="form-control form-control-custom " formControlName="ip" id="Ip" name="Ip" <input type="text" class="form-control form-control-custom " formControlName="ip" id="Ip" name="Ip" placeholder="localhost" [ngClass]="{'form-error': form.get('ip').hasError('required')}">
placeholder="localhost" [ngClass]="{'form-error': form.get('ip').hasError('required')}">
</div> </div>
<div class="form-group"> <div class="form-group">
@ -53,8 +52,7 @@
<i *ngIf="form.get('port').hasError('required')" class="fa fa-exclamation-circle error-text" pTooltip="The Port is required"></i> <i *ngIf="form.get('port').hasError('required')" class="fa fa-exclamation-circle error-text" pTooltip="The Port is required"></i>
</label> </label>
<input type="text" class="form-control form-control-custom " [ngClass]="{'form-error': form.get('port').hasError('required')}" <input type="text" class="form-control form-control-custom " [ngClass]="{'form-error': form.get('port').hasError('required')}" formControlName="port" id="portNumber" name="Port" placeholder="Port Number">
formControlName="port" id="portNumber" name="Port" placeholder="Port Number">
</div> </div>
@ -64,14 +62,12 @@
<i *ngIf="form.get('apiKey').hasError('required')" class="fa fa-exclamation-circle error-text" pTooltip="The API Key is required"></i> <i *ngIf="form.get('apiKey').hasError('required')" class="fa fa-exclamation-circle error-text" pTooltip="The API Key is required"></i>
</label> </label>
<input type="text" class="form-control form-control-custom " [ngClass]="{'form-error': form.get('apiKey').hasError('required')}" <input type="text" class="form-control form-control-custom " [ngClass]="{'form-error': form.get('apiKey').hasError('required')}" formControlName="apiKey" id="ApiKey" name="ApiKey">
formControlName="apiKey" id="ApiKey" name="ApiKey">
</div> </div>
<div class="form-group"> <div class="form-group">
<label for="SubDir" class="control-label">Sonarr Base Url</label> <label for="SubDir" class="control-label">Sonarr Base Url</label>
<div> <div>
<input type="text" class="form-control form-control-custom" formControlName="subDir" id="SubDir" <input type="text" class="form-control form-control-custom" formControlName="subDir" id="SubDir" name="SubDir">
name="SubDir">
</div> </div>
</div> </div>
</div> </div>
@ -82,8 +78,7 @@
<i *ngIf="form.get('qualityProfile').hasError('required')" class="fa fa-exclamation-circle error-text" pTooltip="A Default Quality Profile is required"></i> <i *ngIf="form.get('qualityProfile').hasError('required')" class="fa fa-exclamation-circle error-text" pTooltip="A Default Quality Profile is required"></i>
</label> </label>
<div id="profiles"> <div id="profiles">
<select class="form-control form-control-custom col-md-5 form-half" [ngClass]="{'form-error': form.get('qualityProfile').hasError('required')}" <select class="form-control form-control-custom col-md-5 form-half" [ngClass]="{'form-error': form.get('qualityProfile').hasError('required')}" id="select" formControlName="qualityProfile">
id="select" formControlName="qualityProfile">
<option *ngFor="let quality of qualities" value="{{quality.id}}">{{quality.name}}</option> <option *ngFor="let quality of qualities" value="{{quality.id}}">{{quality.name}}</option>
</select> </select>
<button type="button" (click)="getProfiles(form)" class="btn btn-primary-outline col-md-4 col-md-push-1 load"> <button type="button" (click)="getProfiles(form)" class="btn btn-primary-outline col-md-4 col-md-push-1 load">
@ -110,8 +105,7 @@
<i *ngIf="form.get('rootPath').hasError('required')" class="fa fa-exclamation-circle error-text" pTooltip="A Default Root Path is required"></i> <i *ngIf="form.get('rootPath').hasError('required')" class="fa fa-exclamation-circle error-text" pTooltip="A Default Root Path is required"></i>
</label> </label>
<div id="rootFolders"> <div id="rootFolders">
<select class="form-control form-control-custom col-md-5 form-half" formControlName="rootPath" <select class="form-control form-control-custom col-md-5 form-half" formControlName="rootPath" [ngClass]="{'form-error': form.get('rootPath').hasError('required')}">
[ngClass]="{'form-error': form.get('rootPath').hasError('required')}">
<option *ngFor="let folder of rootFolders" value="{{folder.id}}">{{folder.path}}</option> <option *ngFor="let folder of rootFolders" value="{{folder.id}}">{{folder.path}}</option>
</select> </select>
<button type="button" (click)="getRootFolders(form)" class="btn btn-primary-outline load col-md-4 col-md-push-1"> <button type="button" (click)="getRootFolders(form)" class="btn btn-primary-outline load col-md-4 col-md-push-1">
@ -134,8 +128,7 @@
<i *ngIf="form.get('languageProfile').hasError('required')" class="fa fa-exclamation-circle error-text" pTooltip="A Language Profile is required"></i> <i *ngIf="form.get('languageProfile').hasError('required')" class="fa fa-exclamation-circle error-text" pTooltip="A Language Profile is required"></i>
</label> </label>
<div id="langaugeProfile"> <div id="langaugeProfile">
<select formControlName="languageProfile" class="form-control form-control-custom col-md-5 form-half" <select formControlName="languageProfile" class="form-control form-control-custom col-md-5 form-half" id="select" [ngClass]="{'form-error': form.get('languageProfile').hasError('required')}">
id="select" [ngClass]="{'form-error': form.get('languageProfile').hasError('required')}">
<option *ngFor="let lang of languageProfiles" [ngValue]="lang.id">{{lang.name}}</option> <option *ngFor="let lang of languageProfiles" [ngValue]="lang.id">{{lang.name}}</option>
</select> </select>
<button (click)="getLanguageProfiles(form)" type="button" class="btn btn-primary-outline col-md-4 col-md-push-1">Load <button (click)="getLanguageProfiles(form)" type="button" class="btn btn-primary-outline col-md-4 col-md-push-1">Load

View file

@ -25,11 +25,6 @@
display: block; display: block;
} }
::ng-deep .dark .small-middle-container{
background-color: rgba(0, 0, 0, 0.10);
padding: 2em;
}
::ng-deep .dark .btn:hover { ::ng-deep .dark .btn:hover {
box-shadow: 0 5px 11px 0 rgba(255, 255, 255, 0.18), 0 4px 15px 0 rgba(255, 255, 255, 0.15); box-shadow: 0 5px 11px 0 rgba(255, 255, 255, 0.18), 0 4px 15px 0 rgba(255, 255, 255, 0.15);
color: inherit; color: inherit;
@ -45,11 +40,9 @@
.col-md-6 { .col-md-6 {
display: inline-table; display: inline-table;
} }
.col-md-5 { .col-md-5 {
display: inline-table; display: inline-table;
} }
.col-md-4 { .col-md-4 {
display: inline-table; display: inline-table;
} }

View file

@ -5,11 +5,6 @@
margin-top: 10px; margin-top: 10px;
} }
::ng-deep .dark .small-middle-container{
background-color: rgba(0, 0, 0, 0.10);
padding: 2em;
}
::ng-deep .dark .btn:hover { ::ng-deep .dark .btn:hover {
box-shadow: 0 5px 11px 0 rgba(255, 255, 255, 0.18), 0 4px 15px 0 rgba(255, 255, 255, 0.15); box-shadow: 0 5px 11px 0 rgba(255, 255, 255, 0.18), 0 4px 15px 0 rgba(255, 255, 255, 0.15);
color: inherit; color: inherit;

View file

@ -29,11 +29,6 @@
background-color: #1b9d1b; background-color: #1b9d1b;
} }
::ng-deep .dark .small-middle-container{
background-color: rgba(0, 0, 0, 0.10);
padding: 2em;
}
::ng-deep .dark .btn:hover { ::ng-deep .dark .btn:hover {
box-shadow: 0 5px 11px 0 rgba(255, 255, 255, 0.18), 0 4px 15px 0 rgba(255, 255, 255, 0.15); box-shadow: 0 5px 11px 0 rgba(255, 255, 255, 0.18), 0 4px 15px 0 rgba(255, 255, 255, 0.15);
color: inherit; color: inherit;
@ -43,7 +38,6 @@
.col-md-6 { .col-md-6 {
display: inline-table; display: inline-table;
} }
.col-md-5 { .col-md-5 {
display: inline-table; display: inline-table;
} }

View file

@ -5,11 +5,6 @@
margin-top: 10px; margin-top: 10px;
} }
::ng-deep .dark .small-middle-container{
background-color: rgba(0, 0, 0, 0.10);
padding: 2em;
}
::ng-deep .dark .btn:hover { ::ng-deep .dark .btn:hover {
box-shadow: 0 5px 11px 0 rgba(255, 255, 255, 0.18), 0 4px 15px 0 rgba(255, 255, 255, 0.15); box-shadow: 0 5px 11px 0 rgba(255, 255, 255, 0.18), 0 4px 15px 0 rgba(255, 255, 255, 0.15);
color: inherit; color: inherit;