Merge pull request #2482 from tidusjar/feature/lidarr

Feature/lidarr
pull/2467/head
Jamie 6 years ago committed by GitHub
commit 4b7e4adb23
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -5,8 +5,8 @@
<fieldset> <fieldset>
<legend>Update Settings</legend> <legend>Update Settings</legend>
<div class="form-group" style="float: right"> <div class="form-group" style="float: right">
<div *ngIf="updateAvailable || form.controls['testMode'].value"> <div *ngIf="updateAvailable">
<button (click)="update()" [disabled]="!enableUpdateButton || !form.controls['testMode'].value" class="btn btn-success-outline">Update</button> <button (click)="update()" [disabled]="!enableUpdateButton" class="btn btn-success-outline">Update</button>
</div> </div>
<div *ngIf="!updateAvailable"> <div *ngIf="!updateAvailable">
<button (click)="checkForUpdate()" class="btn btn-primary-outline">Check For Update</button> <button (click)="checkForUpdate()" class="btn btn-primary-outline">Check For Update</button>

@ -63,7 +63,7 @@ export class UpdateComponent implements OnInit {
this.notificationService.error("Please check your entered values"); this.notificationService.error("Please check your entered values");
return; return;
} }
this.enableUpdateButton = form.value.autoUpdateEnabled || form.value.testMode; this.enableUpdateButton = form.value.autoUpdateEnabled;
this.settingsService.saveUpdateSettings(form.value) this.settingsService.saveUpdateSettings(form.value)
.subscribe(x => { .subscribe(x => {
if (x) { if (x) {

Loading…
Cancel
Save