mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-08-14 02:26:55 -07:00
Updater fixes
This commit is contained in:
parent
e621398dde
commit
00151e5419
4 changed files with 9 additions and 9 deletions
10
build.cake
10
build.cake
|
@ -174,11 +174,11 @@ Task("Package")
|
|||
Task("Publish")
|
||||
.IsDependentOn("PrePublish")
|
||||
.IsDependentOn("Publish-Windows")
|
||||
.IsDependentOn("Publish-Windows-32bit")
|
||||
.IsDependentOn("Publish-OSX")
|
||||
.IsDependentOn("Publish-Linux")
|
||||
.IsDependentOn("Publish-Linux-ARM")
|
||||
.IsDependentOn("Publish-Linux-ARM-64Bit")
|
||||
// .IsDependentOn("Publish-Windows-32bit")
|
||||
// .IsDependentOn("Publish-OSX")
|
||||
// .IsDependentOn("Publish-Linux")
|
||||
// .IsDependentOn("Publish-Linux-ARM")
|
||||
// .IsDependentOn("Publish-Linux-ARM-64Bit")
|
||||
.IsDependentOn("Package");
|
||||
|
||||
Task("Publish-Windows")
|
||||
|
|
|
@ -72,7 +72,7 @@ namespace Ombi.Schedule.Jobs.Ombi
|
|||
Logger.LogDebug(LoggingEvents.Updater, "Starting Update job");
|
||||
|
||||
var settings = await Settings.GetSettingsAsync();
|
||||
if (!settings.AutoUpdateEnabled)
|
||||
if (!settings.AutoUpdateEnabled && !settings.TestMode)
|
||||
{
|
||||
Logger.LogDebug(LoggingEvents.Updater, "Auto update is not enabled");
|
||||
return;
|
||||
|
|
|
@ -5,8 +5,8 @@
|
|||
<fieldset>
|
||||
<legend>Update Settings</legend>
|
||||
<div class="form-group" style="float: right">
|
||||
<div *ngIf="updateAvailable">
|
||||
<button (click)="update()" [disabled]="!enableUpdateButton || !form.value.testMode" class="btn btn-success-outline">Update</button>
|
||||
<div *ngIf="updateAvailable || form.controls['testMode'].value">
|
||||
<button (click)="update()" [disabled]="!enableUpdateButton || !form.controls['testMode'].value" 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;
|
||||
this.enableUpdateButton = form.value.autoUpdateEnabled || form.value.testMode;
|
||||
this.settingsService.saveUpdateSettings(form.value)
|
||||
.subscribe(x => {
|
||||
if (x) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue