mirror of
https://github.com/Radarr/Radarr
synced 2024-12-25 17:27:59 +00:00
Added Recycle Bin to UI
This commit is contained in:
parent
fcf0ca7299
commit
0a41a47c9d
3 changed files with 13 additions and 0 deletions
|
@ -236,6 +236,7 @@ public ActionResult System()
|
|||
model.LaunchBrowser = _configFileProvider.LaunchBrowser;
|
||||
model.AuthenticationType = selectedAuthenticationType;
|
||||
model.AuthTypeSelectList = authTypeSelectList;
|
||||
model.RecycleBin = _configProvider.RecycleBin;
|
||||
|
||||
return View(model);
|
||||
}
|
||||
|
@ -622,6 +623,7 @@ public JsonResult SaveSystem(SystemSettingsModel data)
|
|||
_configFileProvider.Port = data.Port;
|
||||
_configFileProvider.LaunchBrowser = data.LaunchBrowser;
|
||||
_configFileProvider.AuthenticationType = data.AuthenticationType;
|
||||
_configProvider.RecycleBin = data.RecycleBin;
|
||||
|
||||
return GetSuccessResult();
|
||||
}
|
||||
|
|
|
@ -23,5 +23,10 @@ public class SystemSettingsModel
|
|||
public AuthenticationType AuthenticationType { get; set; }
|
||||
|
||||
public SelectList AuthTypeSelectList { get; set; }
|
||||
|
||||
[DisplayName("Recycle Bin")]
|
||||
[Description("Path to NzbDrone's internal recycle bin (optional)")]
|
||||
[DisplayFormat(ConvertEmptyStringToNull = false)]
|
||||
public string RecycleBin { get; set; }
|
||||
}
|
||||
}
|
|
@ -27,6 +27,12 @@
|
|||
</label>
|
||||
@Html.DropDownListFor(m => m.AuthenticationType, Model.AuthTypeSelectList, new { @class = "inputClass" })
|
||||
|
||||
<label class="labelClass">@Html.LabelFor(m => m.RecycleBin)
|
||||
<span class="small">@Html.DescriptionFor(m => m.RecycleBin)</span>
|
||||
<span class="small">@Html.ValidationMessageFor(m => m.RecycleBin)</span>
|
||||
</label>
|
||||
@Html.TextBoxFor(m => m.RecycleBin, new { @class = "inputClass" })
|
||||
|
||||
<label class="labelClass"> Backup Configuration
|
||||
<span class="small">Backup your Configuration file and Database</span>
|
||||
</label>
|
||||
|
|
Loading…
Reference in a new issue