Updater fixes

pull/2420/head
Jamie 6 years ago
parent e621398dde
commit 00151e5419

@ -174,11 +174,11 @@ Task("Package")
Task("Publish") Task("Publish")
.IsDependentOn("PrePublish") .IsDependentOn("PrePublish")
.IsDependentOn("Publish-Windows") .IsDependentOn("Publish-Windows")
.IsDependentOn("Publish-Windows-32bit") // .IsDependentOn("Publish-Windows-32bit")
.IsDependentOn("Publish-OSX") // .IsDependentOn("Publish-OSX")
.IsDependentOn("Publish-Linux") // .IsDependentOn("Publish-Linux")
.IsDependentOn("Publish-Linux-ARM") // .IsDependentOn("Publish-Linux-ARM")
.IsDependentOn("Publish-Linux-ARM-64Bit") // .IsDependentOn("Publish-Linux-ARM-64Bit")
.IsDependentOn("Package"); .IsDependentOn("Package");
Task("Publish-Windows") Task("Publish-Windows")

@ -72,7 +72,7 @@ namespace Ombi.Schedule.Jobs.Ombi
Logger.LogDebug(LoggingEvents.Updater, "Starting Update job"); Logger.LogDebug(LoggingEvents.Updater, "Starting Update job");
var settings = await Settings.GetSettingsAsync(); var settings = await Settings.GetSettingsAsync();
if (!settings.AutoUpdateEnabled) if (!settings.AutoUpdateEnabled && !settings.TestMode)
{ {
Logger.LogDebug(LoggingEvents.Updater, "Auto update is not enabled"); Logger.LogDebug(LoggingEvents.Updater, "Auto update is not enabled");
return; return;

@ -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"> <div *ngIf="updateAvailable || form.controls['testMode'].value">
<button (click)="update()" [disabled]="!enableUpdateButton || !form.value.testMode" class="btn btn-success-outline">Update</button> <button (click)="update()" [disabled]="!enableUpdateButton || !form.controls['testMode'].value" 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; this.enableUpdateButton = form.value.autoUpdateEnabled || form.value.testMode;
this.settingsService.saveUpdateSettings(form.value) this.settingsService.saveUpdateSettings(form.value)
.subscribe(x => { .subscribe(x => {
if (x) { if (x) {

Loading…
Cancel
Save