mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-08-20 05:13:18 -07:00
commit
4b7e4adb23
2 changed files with 3 additions and 3 deletions
|
@ -5,8 +5,8 @@
|
|||
<fieldset>
|
||||
<legend>Update Settings</legend>
|
||||
<div class="form-group" style="float: right">
|
||||
<div *ngIf="updateAvailable || form.controls['testMode'].value">
|
||||
<button (click)="update()" [disabled]="!enableUpdateButton || !form.controls['testMode'].value" class="btn btn-success-outline">Update</button>
|
||||
<div *ngIf="updateAvailable">
|
||||
<button (click)="update()" [disabled]="!enableUpdateButton" class="btn btn-success-outline">Update</button>
|
||||
</div>
|
||||
<div *ngIf="!updateAvailable">
|
||||
<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");
|
||||
return;
|
||||
}
|
||||
this.enableUpdateButton = form.value.autoUpdateEnabled || form.value.testMode;
|
||||
this.enableUpdateButton = form.value.autoUpdateEnabled;
|
||||
this.settingsService.saveUpdateSettings(form.value)
|
||||
.subscribe(x => {
|
||||
if (x) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue