mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-08-21 05:43:19 -07:00
added optional launch args for the auto updater
This commit is contained in:
parent
defc5a7a91
commit
9165f3f31e
4 changed files with 49 additions and 16 deletions
|
@ -11,7 +11,7 @@
|
|||
<label class="control-label">Current Version: </label>
|
||||
<label class="control-label">@Model.Status.CurrentVersion</label>
|
||||
</div>
|
||||
|
||||
|
||||
@if (Model.Status.UpdateAvailable)
|
||||
{
|
||||
<div class="form-group">
|
||||
|
@ -50,6 +50,8 @@
|
|||
{
|
||||
<label class="control-label"><a href="@Model.Status.UpdateUri" target="_blank"><i class="fa fa-check"></i></a></label>
|
||||
<br />
|
||||
<input id="args" class="form-control form-control-custom " placeholder="optional launch arguments e.g. /etc/mono /opt/PlexRequests.exe">
|
||||
<br/>
|
||||
<button id="autoUpdate" class="btn btn-success-outline">Automatic Update (beta) <i class="fa fa-download"></i></button>
|
||||
}
|
||||
else
|
||||
|
@ -92,7 +94,10 @@
|
|||
$.ajax({
|
||||
type: "Post",
|
||||
url: "autoupdate",
|
||||
data: { url: "@Model.Status.DownloadUri" },
|
||||
data: {
|
||||
url: "@Model.Status.DownloadUri",
|
||||
args: $('#args').val()
|
||||
},
|
||||
dataType: "json",
|
||||
error: function () {
|
||||
setTimeout(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue