mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-08-19 12:59:39 -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")
|
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…
Add table
Add a link
Reference in a new issue