addinf file transfer operation UI

merge-requests/1/head
Nirothipan 7 years ago
parent 989248e711
commit d1c4a1be12

@ -102,6 +102,12 @@
{{this.label}}
<br/>
{{/equal}}
{{#equal this.type "password"}}
<input type="{{this.type}}" id="{{this.id}}"
placeholder="{{this.label}}" class="form-control"
data-param-type="form" value=""/>
<br/>
{{/equal}}
{{#equal this.type "text"}}
<input type="{{this.type}}" id="{{this.id}}"
placeholder="{{this.label}}" class="form-control"

@ -239,6 +239,17 @@ var generatePayload = function (operationCode, operationData, deviceList) {
}
};
break;
case "FILE_TRANSFER":
operationType = operationTypeConstants["PROFILE"];
payload = {
"operation": {
"fileLocation": operationData["fileLocation"],
"ftpUserName": operationData["ftpUserName"],
"ftpPassword": operationData["ftpPassword"],
"fileName": operationData["fileName"]
}
};
break;
case androidOperationConstants["ENCRYPT_STORAGE_OPERATION_CODE"]:
operationType = operationTypeConstants["PROFILE"];
payload = {

@ -135,6 +135,37 @@
"icon": "fw-block",
"permission": "/device-mgt/devices/owning-device/operations/android/enterprise-wipe"
},
"FILE_TRANSFER": {
"icon": "fw-block",
"formParams": [
{
"type": "text",
"id": "fileLocation",
"optional": false,
"label": "FTP Server Address"
}
,
{
"type": "text",
"id": "ftpUserName",
"optional": false,
"label": "FTP User Name"
},
{
"type": "password",
"id": "ftpPassword",
"optional": false,
"label": "FTP Password"
},
{
"type": "text",
"id": "fileName",
"optional": false,
"label": "File Name"
}
],
"permission": "/device-mgt/devices/owning-device/operations/android/file-transfer"
},
"WIPE_DATA": {
"icon": "fw-delete",
"formParams": [

Loading…
Cancel
Save