mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-08-20 21:33:15 -07:00
Fixed #2481
This commit is contained in:
parent
18b48cd0a8
commit
5bae5cf096
2 changed files with 3 additions and 3 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue