From f138acab0ceb7f6eb0c32946d715200f095b928e Mon Sep 17 00:00:00 2001 From: Sebastian Schmidt Date: Sun, 18 Apr 2021 09:55:56 +1000 Subject: [PATCH] Transmission fix upgrade from dsm6 --- spk/transmission/src/wizard/upgrade_uifile | 53 +++++++++++++++++++++- 1 file changed, 52 insertions(+), 1 deletion(-) diff --git a/spk/transmission/src/wizard/upgrade_uifile b/spk/transmission/src/wizard/upgrade_uifile index 434a171a9bc6..bf6e12ad1cca 100644 --- a/spk/transmission/src/wizard/upgrade_uifile +++ b/spk/transmission/src/wizard/upgrade_uifile @@ -5,5 +5,56 @@ }, { "desc": "NOTE: The package upgrade will try to set the correct permissions on your folders. If you get permission errors within Transmission, manually set Read/Write permissions on the reported folders using File Station." + }, + { + "type": "combobox", + "desc": "Please select a volume to use for the download folder", + "subitems": [ + { + "key": "wizard_volume", + "desc": "volume name", + "displayField": "display_name", + "valueField": "volume_path", + "editable": false, + "mode": "remote", + "api_store": { + "api": "SYNO.Core.Storage.Volume", + "method": "list", + "version": 1, + "baseParams": { + "limit": -1, + "offset": 0, + "location": "internal" + }, + "root": "volumes", + "idProperty": "volume_path", + "fields": [ + "display_name", + "volume_path" + ] + }, + "validator": { + "fn": "{console.log(arguments);return true;}" + } + } + ] + }, + { + "type": "textfield", + "desc": "Download shared folder (using the volume chosen above)", + "subitems": [ + { + "key": "wizard_download_dir", + "desc": "Download shared folder", + "defaultValue": "downloads", + "validator": { + "allowBlank": false, + "regex": { + "expr": "/^[\\w _-]+$/", + "errorText": "Subdirectories are not supported." + } + } + } + ] }] -}] \ No newline at end of file +}]