mirror of
https://repository.entgra.net/community/device-mgt-plugins.git
synced 2025-09-16 23:42:15 +00:00
addinf file transfer operation UI
This commit is contained in:
parent
989248e711
commit
d1c4a1be12
@ -102,6 +102,12 @@
|
|||||||
{{this.label}}
|
{{this.label}}
|
||||||
<br/>
|
<br/>
|
||||||
{{/equal}}
|
{{/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"}}
|
{{#equal this.type "text"}}
|
||||||
<input type="{{this.type}}" id="{{this.id}}"
|
<input type="{{this.type}}" id="{{this.id}}"
|
||||||
placeholder="{{this.label}}" class="form-control"
|
placeholder="{{this.label}}" class="form-control"
|
||||||
|
|||||||
@ -239,6 +239,17 @@ var generatePayload = function (operationCode, operationData, deviceList) {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
break;
|
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"]:
|
case androidOperationConstants["ENCRYPT_STORAGE_OPERATION_CODE"]:
|
||||||
operationType = operationTypeConstants["PROFILE"];
|
operationType = operationTypeConstants["PROFILE"];
|
||||||
payload = {
|
payload = {
|
||||||
@ -434,4 +445,4 @@ var androidOperationConstants = {
|
|||||||
"APPLICATION_OPERATION_CODE": "APP-RESTRICTION",
|
"APPLICATION_OPERATION_CODE": "APP-RESTRICTION",
|
||||||
"SYSTEM_UPDATE_POLICY_CODE": "SYSTEM_UPDATE_POLICY",
|
"SYSTEM_UPDATE_POLICY_CODE": "SYSTEM_UPDATE_POLICY",
|
||||||
"KIOSK_APPS_CODE": "KIOSK_APPS"
|
"KIOSK_APPS_CODE": "KIOSK_APPS"
|
||||||
};
|
};
|
||||||
|
|||||||
@ -135,6 +135,37 @@
|
|||||||
"icon": "fw-block",
|
"icon": "fw-block",
|
||||||
"permission": "/device-mgt/devices/owning-device/operations/android/enterprise-wipe"
|
"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": {
|
"WIPE_DATA": {
|
||||||
"icon": "fw-delete",
|
"icon": "fw-delete",
|
||||||
"formParams": [
|
"formParams": [
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user