BNA8/.resources/b5c5a7c388e7e77e9fd7ed2cdaa8133f576cf95e0c21f4bb32fedc7ccf8d6956

112 lines
2.6 KiB
Plaintext

{
"custom": {},
"params": {
"filenames": []
},
"propConfig": {
"params.filenames": {
"paramDirection": "input",
"persistent": true
}
},
"props": {
"defaultSize": {
"height": 300,
"width": 400
}
},
"root": {
"children": [
{
"meta": {
"name": "Markdown"
},
"position": {
"height": "calc(100% - 100px)",
"width": "calc(100% - 50px)",
"x": 25,
"y": 25
},
"propConfig": {
"props.source": {
"binding": {
"config": {
"path": "view.params.filenames"
},
"transforms": [
{
"code": "\ttext \u003d \"Are you sure you would like to delete the following config files:\\n\"\n\tfor val in value:\n\t\ttext +\u003d \"\\n* \"+val.value\n\treturn text",
"type": "script"
}
],
"type": "property"
}
}
},
"type": "ia.display.markdown"
},
{
"events": {
"component": {
"onActionPerformed": {
"config": {
"script": "\tfilenames \u003d [filename.value for filename in self.view.params.filenames]\n\terr \u003d reports.deleteConfigs(filenames)\n\tsystem.perspective.sendMessage(\"custom-reports-refreshlist\", {})\n\tsystem.perspective.closePopup(\"\")"
},
"scope": "G",
"type": "script"
}
}
},
"meta": {
"name": "Button_Yes"
},
"position": {
"height": 55,
"width": 100,
"x": 25,
"y": 235
},
"props": {
"style": {
"classes": "Buttons/Grey"
},
"text": "Yes"
},
"type": "ia.input.button"
},
{
"events": {
"component": {
"onActionPerformed": {
"config": {
"script": "\tsystem.perspective.closePopup(\"\")"
},
"scope": "G",
"type": "script"
}
}
},
"meta": {
"name": "Button_No"
},
"position": {
"height": 55,
"width": 100,
"x": "calc(100% - 125px)",
"y": 235
},
"props": {
"style": {
"classes": "Buttons/Grey"
},
"text": "No"
},
"type": "ia.input.button"
}
],
"meta": {
"name": "root"
},
"type": "ia.container.coord"
}
}