779 lines
23 KiB
Plaintext
779 lines
23 KiB
Plaintext
{
|
|
"custom": {},
|
|
"params": {
|
|
"value": {
|
|
"tagProps": [
|
|
"MCM01",
|
|
"value",
|
|
"value",
|
|
"value",
|
|
"value",
|
|
"value",
|
|
"value",
|
|
"value",
|
|
"value",
|
|
"value"
|
|
]
|
|
}
|
|
},
|
|
"propConfig": {
|
|
"params.tagProps": {
|
|
"paramDirection": "input",
|
|
"persistent": true
|
|
},
|
|
"params.value": {
|
|
"paramDirection": "input",
|
|
"persistent": true
|
|
},
|
|
"params.value.tagProps": {
|
|
"onChange": {
|
|
"enabled": null,
|
|
"script": "\tsystem.perspective.print(currentValue.value)"
|
|
}
|
|
}
|
|
},
|
|
"props": {
|
|
"defaultSize": {
|
|
"height": 50,
|
|
"width": 396
|
|
}
|
|
},
|
|
"root": {
|
|
"children": [
|
|
{
|
|
"events": {
|
|
"component": {
|
|
"onActionPerformed": {
|
|
"config": {
|
|
"script": "\ttag_name \u003d self.view.params.value.tagProps[0]\n\ttag_path \u003d \"[\" + self.session.custom.fc+ \"_SCADA_TAG_PROVIDER]\"+\"System/\"+tag_name +\"/\" + tag_name+\"/Start_PB\"\n\tsystem.tag.writeBlocking([tag_path],[True])\n\t"
|
|
},
|
|
"scope": "G",
|
|
"type": "script"
|
|
}
|
|
}
|
|
},
|
|
"meta": {
|
|
"name": "Start",
|
|
"tooltip": {
|
|
"enabled": true,
|
|
"location": "top-left"
|
|
}
|
|
},
|
|
"position": {
|
|
"basis": "80px"
|
|
},
|
|
"propConfig": {
|
|
"meta.tooltip.text": {
|
|
"binding": {
|
|
"config": {
|
|
"expression": "if({this.props.enabled},\u0027Start \u0027 + {view.params.value.tagProps[0]},\"You do not have Maintenance or Administrator role!\")"
|
|
},
|
|
"type": "expr"
|
|
}
|
|
},
|
|
"props.enabled": {
|
|
"binding": {
|
|
"config": {
|
|
"expression": "indexOf({session.props.auth.user.roles}, \"Administrator\") \u003e\u003d 0 || indexOf({session.props.auth.user.roles}, \"Maintenance\") \u003e\u003d 0"
|
|
},
|
|
"type": "expr"
|
|
}
|
|
},
|
|
"props.image.icon.color": {
|
|
"binding": {
|
|
"config": {
|
|
"expression": "if({this.props.enabled},\u0027#FFFFFF\u0027,\u0027#979797\u0027)"
|
|
},
|
|
"type": "expr"
|
|
}
|
|
},
|
|
"props.style.backgroundColor": {
|
|
"binding": {
|
|
"config": {
|
|
"fallbackDelay": 2.5,
|
|
"mode": "indirect",
|
|
"references": {
|
|
"0": "{view.params.value.tagProps[0]}",
|
|
"fc": "{session.custom.fc}"
|
|
},
|
|
"tagPath": "[{fc}_SCADA_TAG_PROVIDER]System/{0}/{0}/Start_PB_Color"
|
|
},
|
|
"transforms": [
|
|
{
|
|
"expression": "coalesce({value},0)",
|
|
"type": "expression"
|
|
},
|
|
{
|
|
"fallback": "#00A700",
|
|
"inputType": "scalar",
|
|
"mappings": [
|
|
{
|
|
"input": 2,
|
|
"output": "#41E841"
|
|
},
|
|
{
|
|
"input": 4,
|
|
"output": "#41E841"
|
|
}
|
|
],
|
|
"outputType": "color",
|
|
"type": "map"
|
|
}
|
|
],
|
|
"type": "tag"
|
|
}
|
|
},
|
|
"props.style.borderStyle": {
|
|
"binding": {
|
|
"config": {
|
|
"expression": "if({this.props.enabled},\u0027solid\u0027,\u0027none\u0027)"
|
|
},
|
|
"type": "expr"
|
|
}
|
|
}
|
|
},
|
|
"props": {
|
|
"image": {
|
|
"height": 32,
|
|
"icon": {
|
|
"path": "material/not_started"
|
|
},
|
|
"position": "top",
|
|
"width": 32
|
|
},
|
|
"style": {
|
|
"borderColor": "#4A4A4A",
|
|
"borderWidth": 2,
|
|
"classes": "\n",
|
|
"marginBottom": 5,
|
|
"marginLeft": 5,
|
|
"marginRight": 5,
|
|
"marginTop": 5
|
|
},
|
|
"text": "",
|
|
"textStyle": {
|
|
"color": "#000000",
|
|
"fontSize": 12,
|
|
"fontWeight": "bold",
|
|
"textAlign": "center"
|
|
}
|
|
},
|
|
"type": "ia.input.button"
|
|
},
|
|
{
|
|
"events": {
|
|
"component": {
|
|
"onActionPerformed": {
|
|
"config": {
|
|
"script": "\ttag_name \u003d self.view.params.value.tagProps[0]\n\ttag_path \u003d \"[\" + self.session.custom.fc+ \"_SCADA_TAG_PROVIDER]\"+\"System/\"+tag_name +\"/\" + tag_name+\"/Stop_PB\"\n\tsystem.tag.writeBlocking([tag_path],[True])"
|
|
},
|
|
"scope": "G",
|
|
"type": "script"
|
|
}
|
|
}
|
|
},
|
|
"meta": {
|
|
"name": "Stop",
|
|
"tooltip": {
|
|
"enabled": true,
|
|
"location": "top-left"
|
|
}
|
|
},
|
|
"position": {
|
|
"basis": "80px"
|
|
},
|
|
"propConfig": {
|
|
"meta.tooltip.text": {
|
|
"binding": {
|
|
"config": {
|
|
"expression": "if({this.props.enabled},\u0027Stop \u0027 + {view.params.value.tagProps[0]},\"You do not have Maintenance or Administrator role!\")"
|
|
},
|
|
"type": "expr"
|
|
}
|
|
},
|
|
"props.enabled": {
|
|
"binding": {
|
|
"config": {
|
|
"expression": "indexOf({session.props.auth.user.roles}, \"Administrator\") \u003e\u003d 0 || indexOf({session.props.auth.user.roles}, \"Maintenance\") \u003e\u003d 0"
|
|
},
|
|
"type": "expr"
|
|
}
|
|
},
|
|
"props.image.icon.color": {
|
|
"binding": {
|
|
"config": {
|
|
"expression": "if({this.props.enabled},\u0027#FFFFFF\u0027,\u0027#979797\u0027)"
|
|
},
|
|
"type": "expr"
|
|
}
|
|
},
|
|
"props.style.backgroundColor": {
|
|
"binding": {
|
|
"config": {
|
|
"fallbackDelay": 2.5,
|
|
"mode": "indirect",
|
|
"references": {
|
|
"0": "{view.params.value.tagProps[0]}",
|
|
"fc": "{session.custom.fc}"
|
|
},
|
|
"tagPath": "[{fc}_SCADA_TAG_PROVIDER]System/{0}/{0}/Stop_PB"
|
|
},
|
|
"transforms": [
|
|
{
|
|
"expression": "coalesce({value},0)",
|
|
"type": "expression"
|
|
},
|
|
{
|
|
"fallback": "#CA0D0D",
|
|
"inputType": "scalar",
|
|
"mappings": [
|
|
{
|
|
"input": 1,
|
|
"output": "#FF0000"
|
|
}
|
|
],
|
|
"outputType": "color",
|
|
"type": "map"
|
|
}
|
|
],
|
|
"type": "tag"
|
|
}
|
|
},
|
|
"props.style.borderStyle": {
|
|
"binding": {
|
|
"config": {
|
|
"expression": "if({this.props.enabled},\u0027solid\u0027,\u0027none\u0027)"
|
|
},
|
|
"type": "expr"
|
|
}
|
|
}
|
|
},
|
|
"props": {
|
|
"image": {
|
|
"height": 32,
|
|
"icon": {
|
|
"path": "material/stop_circle"
|
|
},
|
|
"position": "top",
|
|
"width": 32
|
|
},
|
|
"style": {
|
|
"borderColor": "#4A4A4A",
|
|
"borderWidth": 2,
|
|
"classes": "\n",
|
|
"marginBottom": 5,
|
|
"marginLeft": 5,
|
|
"marginRight": 5,
|
|
"marginTop": 5
|
|
},
|
|
"text": "",
|
|
"textStyle": {
|
|
"fontSize": 12,
|
|
"fontWeight": "bold",
|
|
"textAlign": "center"
|
|
}
|
|
},
|
|
"type": "ia.input.button"
|
|
},
|
|
{
|
|
"events": {
|
|
"component": {
|
|
"onActionPerformed": {
|
|
"config": {
|
|
"script": "\ttag_name \u003d self.view.params.value.tagProps[0]\n\ttag_path \u003d \"[\" + self.session.custom.fc+ \"_SCADA_TAG_PROVIDER]\"+\"System/\"+tag_name +\"/\" + tag_name+\"/Motor_Fault_Reset_PB\"\n\tsystem.tag.writeBlocking([tag_path],[True])"
|
|
},
|
|
"scope": "G",
|
|
"type": "script"
|
|
}
|
|
}
|
|
},
|
|
"meta": {
|
|
"name": "MotorFaultReset",
|
|
"tooltip": {
|
|
"enabled": true,
|
|
"location": "top-left"
|
|
}
|
|
},
|
|
"position": {
|
|
"basis": "80px"
|
|
},
|
|
"propConfig": {
|
|
"meta.tooltip.text": {
|
|
"binding": {
|
|
"config": {
|
|
"expression": "if({this.props.enabled},\u0027Motor Fault Reset \u0027 + {view.params.value.tagProps[0]},\"You do not have Maintenance or Administrator role!\")"
|
|
},
|
|
"type": "expr"
|
|
}
|
|
},
|
|
"props.enabled": {
|
|
"binding": {
|
|
"config": {
|
|
"expression": "indexOf({session.props.auth.user.roles}, \"Administrator\") \u003e\u003d 0 || indexOf({session.props.auth.user.roles}, \"Maintenance\") \u003e\u003d 0"
|
|
},
|
|
"type": "expr"
|
|
}
|
|
},
|
|
"props.image.icon.color": {
|
|
"binding": {
|
|
"config": {
|
|
"expression": "if({this.props.enabled},\u0027#000000\u0027,\u0027#979797\u0027)"
|
|
},
|
|
"type": "expr"
|
|
}
|
|
},
|
|
"props.style.backgroundColor": {
|
|
"binding": {
|
|
"config": {
|
|
"fallbackDelay": 2.5,
|
|
"mode": "indirect",
|
|
"references": {
|
|
"0": "{view.params.value.tagProps[0]}",
|
|
"fc": "{session.custom.fc}"
|
|
},
|
|
"tagPath": "[{fc}_SCADA_TAG_PROVIDER]System/{0}/{0}/Motor_Fault_Reset_PB_Color"
|
|
},
|
|
"transforms": [
|
|
{
|
|
"expression": "coalesce({value},0)",
|
|
"type": "expression"
|
|
},
|
|
{
|
|
"fallback": "#DCDC03",
|
|
"inputType": "scalar",
|
|
"mappings": [
|
|
{
|
|
"input": 2,
|
|
"output": "#FCFF86"
|
|
},
|
|
{
|
|
"input": 4,
|
|
"output": "#FCFF86"
|
|
}
|
|
],
|
|
"outputType": "color",
|
|
"type": "map"
|
|
}
|
|
],
|
|
"type": "tag"
|
|
}
|
|
},
|
|
"props.style.borderStyle": {
|
|
"binding": {
|
|
"config": {
|
|
"expression": "if({this.props.enabled},\u0027solid\u0027,\u0027none\u0027)"
|
|
},
|
|
"type": "expr"
|
|
}
|
|
}
|
|
},
|
|
"props": {
|
|
"image": {
|
|
"height": 32,
|
|
"icon": {
|
|
"path": "material/refresh"
|
|
},
|
|
"position": "top",
|
|
"width": 32
|
|
},
|
|
"style": {
|
|
"borderColor": "#4A4A4A",
|
|
"borderWidth": 2,
|
|
"classes": "\n",
|
|
"marginBottom": 5,
|
|
"marginLeft": 5,
|
|
"marginRight": 5,
|
|
"marginTop": 5
|
|
},
|
|
"text": "",
|
|
"textStyle": {
|
|
"fontSize": 12,
|
|
"fontWeight": "bold",
|
|
"textAlign": "center"
|
|
}
|
|
},
|
|
"type": "ia.input.button"
|
|
},
|
|
{
|
|
"events": {
|
|
"component": {
|
|
"onActionPerformed": {
|
|
"config": {
|
|
"script": "\ttag_name \u003d self.view.params.value.tagProps[0]\n\ttag_path \u003d \"[\" + self.session.custom.fc+ \"_SCADA_TAG_PROVIDER]\"+\"System/\"+tag_name +\"/\" + tag_name+\"/Power_Branch_Fault_Reset_PB\"\n\tsystem.tag.writeBlocking([tag_path],[True])"
|
|
},
|
|
"scope": "G",
|
|
"type": "script"
|
|
}
|
|
}
|
|
},
|
|
"meta": {
|
|
"name": "PowerBranchFaultReset",
|
|
"tooltip": {
|
|
"enabled": true,
|
|
"location": "top-left"
|
|
}
|
|
},
|
|
"position": {
|
|
"basis": "80px"
|
|
},
|
|
"propConfig": {
|
|
"meta.tooltip.text": {
|
|
"binding": {
|
|
"config": {
|
|
"expression": "if({this.props.enabled},\u0027Power Branch Fault Reset \u0027 + {view.params.value.tagProps[0]},\"You do not have Maintenance or Administrator role!\")"
|
|
},
|
|
"type": "expr"
|
|
}
|
|
},
|
|
"props.enabled": {
|
|
"binding": {
|
|
"config": {
|
|
"expression": "indexOf({session.props.auth.user.roles}, \"Administrator\") \u003e\u003d 0 || indexOf({session.props.auth.user.roles}, \"Maintenance\") \u003e\u003d 0"
|
|
},
|
|
"type": "expr"
|
|
}
|
|
},
|
|
"props.image.icon.color": {
|
|
"binding": {
|
|
"config": {
|
|
"expression": "if({this.props.enabled},\u0027#000000\u0027,\u0027#979797\u0027)"
|
|
},
|
|
"type": "expr"
|
|
}
|
|
},
|
|
"props.style.backgroundColor": {
|
|
"binding": {
|
|
"config": {
|
|
"fallbackDelay": 2.5,
|
|
"mode": "indirect",
|
|
"references": {
|
|
"0": "{view.params.value.tagProps[0]}",
|
|
"fc": "{session.custom.fc}"
|
|
},
|
|
"tagPath": "[{fc}_SCADA_TAG_PROVIDER]System/{0}/{0}/Power_Branch_Fault_Reset_PB_Color"
|
|
},
|
|
"transforms": [
|
|
{
|
|
"expression": "coalesce({value},{view.params.forceFaultStatus},0)",
|
|
"type": "expression"
|
|
},
|
|
{
|
|
"fallback": "#DCDC03",
|
|
"inputType": "scalar",
|
|
"mappings": [
|
|
{
|
|
"input": 2,
|
|
"output": "#FCFF86"
|
|
},
|
|
{
|
|
"input": 4,
|
|
"output": "#FCFF86"
|
|
}
|
|
],
|
|
"outputType": "color",
|
|
"type": "map"
|
|
}
|
|
],
|
|
"type": "tag"
|
|
}
|
|
},
|
|
"props.style.borderStyle": {
|
|
"binding": {
|
|
"config": {
|
|
"expression": "if({this.props.enabled},\u0027solid\u0027,\u0027none\u0027)"
|
|
},
|
|
"type": "expr"
|
|
}
|
|
}
|
|
},
|
|
"props": {
|
|
"image": {
|
|
"height": 32,
|
|
"icon": {
|
|
"path": "material/power"
|
|
},
|
|
"position": "top",
|
|
"width": 32
|
|
},
|
|
"style": {
|
|
"borderColor": "#4A4A4A",
|
|
"borderWidth": 2,
|
|
"classes": "\n",
|
|
"marginBottom": 5,
|
|
"marginLeft": 5,
|
|
"marginRight": 5,
|
|
"marginTop": 5
|
|
},
|
|
"text": "",
|
|
"textStyle": {
|
|
"fontSize": 12,
|
|
"fontWeight": "bold",
|
|
"textAlign": "center"
|
|
}
|
|
},
|
|
"type": "ia.input.button"
|
|
},
|
|
{
|
|
"events": {
|
|
"component": {
|
|
"onActionPerformed": {
|
|
"config": {
|
|
"script": "\ttag_name \u003d self.view.params.value.tagProps[0]\n\ttag_path \u003d \"[\" + self.session.custom.fc+ \"_SCADA_TAG_PROVIDER]\"+\"System/\"+tag_name +\"/\" + tag_name+\"/Low_Air_Pressure_Reset_PB\"\n\tsystem.tag.writeBlocking([tag_path],[True])"
|
|
},
|
|
"scope": "G",
|
|
"type": "script"
|
|
}
|
|
}
|
|
},
|
|
"meta": {
|
|
"name": "LowAirPressureReset",
|
|
"tooltip": {
|
|
"enabled": true,
|
|
"location": "top-left"
|
|
}
|
|
},
|
|
"position": {
|
|
"basis": "80px"
|
|
},
|
|
"propConfig": {
|
|
"meta.tooltip.text": {
|
|
"binding": {
|
|
"config": {
|
|
"expression": "if({this.props.enabled},\u0027Low Air Pressure Reset \u0027 + {view.params.value.tagProps[0]},\"You do not have Maintenance or Administrator role!\")"
|
|
},
|
|
"type": "expr"
|
|
}
|
|
},
|
|
"props.enabled": {
|
|
"binding": {
|
|
"config": {
|
|
"expression": "indexOf({session.props.auth.user.roles}, \"Administrator\") \u003e\u003d 0 || indexOf({session.props.auth.user.roles}, \"Maintenance\") \u003e\u003d 0"
|
|
},
|
|
"type": "expr"
|
|
}
|
|
},
|
|
"props.image.icon.color": {
|
|
"binding": {
|
|
"config": {
|
|
"expression": "if({this.props.enabled},\u0027#FFFFFF\u0027,\u0027#979797\u0027)"
|
|
},
|
|
"type": "expr"
|
|
}
|
|
},
|
|
"props.style.backgroundColor": {
|
|
"binding": {
|
|
"config": {
|
|
"fallbackDelay": 2.5,
|
|
"mode": "indirect",
|
|
"references": {
|
|
"0": "{view.params.value.tagProps[0]}",
|
|
"fc": "{session.custom.fc}"
|
|
},
|
|
"tagPath": "[{fc}_SCADA_TAG_PROVIDER]System/{0}/{0}/Low_Air_Pressure_Reset_PB_Color"
|
|
},
|
|
"transforms": [
|
|
{
|
|
"expression": "coalesce({value},0)",
|
|
"type": "expression"
|
|
},
|
|
{
|
|
"fallback": "#0A0AA4",
|
|
"inputType": "scalar",
|
|
"mappings": [
|
|
{
|
|
"input": 2,
|
|
"output": "#5D5DFF"
|
|
},
|
|
{
|
|
"input": 4,
|
|
"output": "#5D5DFF"
|
|
}
|
|
],
|
|
"outputType": "color",
|
|
"type": "map"
|
|
}
|
|
],
|
|
"type": "tag"
|
|
}
|
|
},
|
|
"props.style.borderStyle": {
|
|
"binding": {
|
|
"config": {
|
|
"expression": "if({this.props.enabled},\u0027solid\u0027,\u0027none\u0027)"
|
|
},
|
|
"type": "expr"
|
|
}
|
|
}
|
|
},
|
|
"props": {
|
|
"image": {
|
|
"height": 32,
|
|
"icon": {
|
|
"path": "material/waves"
|
|
},
|
|
"position": "top",
|
|
"width": 32
|
|
},
|
|
"style": {
|
|
"borderColor": "#4A4A4A",
|
|
"borderWidth": 2,
|
|
"classes": "\n",
|
|
"marginBottom": 5,
|
|
"marginLeft": 5,
|
|
"marginRight": 5,
|
|
"marginTop": 5
|
|
},
|
|
"text": "",
|
|
"textStyle": {
|
|
"fontSize": 12,
|
|
"fontWeight": "bold",
|
|
"textAlign": "center"
|
|
}
|
|
},
|
|
"type": "ia.input.button"
|
|
},
|
|
{
|
|
"events": {
|
|
"component": {
|
|
"onActionPerformed": {
|
|
"config": {
|
|
"script": "\ttag_name \u003d self.view.params.value.tagProps[0]\n\ttag_path \u003d \"[\" + self.session.custom.fc+ \"_SCADA_TAG_PROVIDER]\"+\"System/\"+tag_name +\"/\" + tag_name+\"/Jam_Restart_PB\"\n\tsystem.tag.writeBlocking([tag_path],[True])"
|
|
},
|
|
"scope": "G",
|
|
"type": "script"
|
|
}
|
|
}
|
|
},
|
|
"meta": {
|
|
"name": "JAM_Reset",
|
|
"tooltip": {
|
|
"enabled": true,
|
|
"location": "top-left"
|
|
}
|
|
},
|
|
"position": {
|
|
"basis": "80px"
|
|
},
|
|
"propConfig": {
|
|
"meta.tooltip.text": {
|
|
"binding": {
|
|
"config": {
|
|
"expression": "if({this.props.enabled},\u0027Jam Reset \u0027 + {view.params.value.tagProps[0]},\"You do not have Maintenance or Administrator role!\")"
|
|
},
|
|
"type": "expr"
|
|
}
|
|
},
|
|
"props.enabled": {
|
|
"binding": {
|
|
"config": {
|
|
"expression": "indexOf({session.props.auth.user.roles}, \"Administrator\") \u003e\u003d 0 || indexOf({session.props.auth.user.roles}, \"Maintenance\") \u003e\u003d 0"
|
|
},
|
|
"type": "expr"
|
|
}
|
|
},
|
|
"props.image.icon.color": {
|
|
"binding": {
|
|
"config": {
|
|
"expression": "if({this.props.enabled},\u0027#000000\u0027,\u0027#979797\u0027)"
|
|
},
|
|
"type": "expr"
|
|
}
|
|
},
|
|
"props.style.backgroundColor": {
|
|
"binding": {
|
|
"config": {
|
|
"fallbackDelay": 2.5,
|
|
"mode": "indirect",
|
|
"references": {
|
|
"0": "{view.params.value.tagProps[0]}",
|
|
"fc": "{session.custom.fc}"
|
|
},
|
|
"tagPath": "[{fc}_SCADA_TAG_PROVIDER]System/{0}/{0}/Jam_Restart_PB_Color"
|
|
},
|
|
"transforms": [
|
|
{
|
|
"expression": "coalesce({value},0)",
|
|
"type": "expression"
|
|
},
|
|
{
|
|
"fallback": "#D4D4D4",
|
|
"inputType": "scalar",
|
|
"mappings": [
|
|
{
|
|
"input": 4,
|
|
"output": "#FFFFFF"
|
|
},
|
|
{
|
|
"input": 2,
|
|
"output": "#FFFFFF"
|
|
}
|
|
],
|
|
"outputType": "color",
|
|
"type": "map"
|
|
}
|
|
],
|
|
"type": "tag"
|
|
}
|
|
},
|
|
"props.style.borderStyle": {
|
|
"binding": {
|
|
"config": {
|
|
"expression": "if({this.props.enabled},\u0027solid\u0027,\u0027none\u0027)"
|
|
},
|
|
"type": "expr"
|
|
}
|
|
}
|
|
},
|
|
"props": {
|
|
"image": {
|
|
"height": 32,
|
|
"icon": {
|
|
"path": "material/sync_problem"
|
|
},
|
|
"position": "top",
|
|
"width": 32
|
|
},
|
|
"style": {
|
|
"borderColor": "#4A4A4A",
|
|
"borderWidth": 2,
|
|
"classes": "\n",
|
|
"marginBottom": 5,
|
|
"marginLeft": 5,
|
|
"marginRight": 5,
|
|
"marginTop": 5
|
|
},
|
|
"text": "",
|
|
"textStyle": {
|
|
"fontSize": 12,
|
|
"fontWeight": "bold",
|
|
"textAlign": "center"
|
|
}
|
|
},
|
|
"type": "ia.input.button"
|
|
}
|
|
],
|
|
"meta": {
|
|
"name": "root"
|
|
},
|
|
"propConfig": {
|
|
"custom.has_role": {
|
|
"binding": {
|
|
"config": {
|
|
"expression": "{session.custom.fc}"
|
|
},
|
|
"transforms": [
|
|
{
|
|
"code": "\trme_role \u003d value +\"-rme-c2c-all\"\n\troles \u003d (self.session.props.auth.user.roles)\n\tif (rme_role.lower() in roles \n\tor rme_role.upper() in roles \n\tor \"eurme-ignition-admins\" in roles):\n\t\treturn True\n\telse:\n\t\treturn False",
|
|
"type": "script"
|
|
}
|
|
],
|
|
"type": "expr"
|
|
}
|
|
}
|
|
},
|
|
"props": {
|
|
"justify": "center"
|
|
},
|
|
"type": "ia.container.flex"
|
|
}
|
|
} |