diff --git a/CNO8_SCADA/com.inductiveautomation.perspective/views/Additional-Home-View/SorterManagement/view.json b/CNO8_SCADA/com.inductiveautomation.perspective/views/Additional-Home-View/SorterManagement/view.json index ed0e0ce..4c904b7 100644 --- a/CNO8_SCADA/com.inductiveautomation.perspective/views/Additional-Home-View/SorterManagement/view.json +++ b/CNO8_SCADA/com.inductiveautomation.perspective/views/Additional-Home-View/SorterManagement/view.json @@ -562,7 +562,10 @@ } }, "meta": { - "name": "Button_10" + "name": "Button_10", + "tooltip": { + "enabled": true + } }, "position": { "height": 0.019, @@ -570,6 +573,24 @@ "x": 0.4031, "y": 0.0926 }, + "propConfig": { + "meta.tooltip.text": { + "binding": { + "config": { + "expression": "if({this.props.enabled},{this.props.text} +\u0027 Button\u0027,\"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": { "style": { "backgroundColor": "#3779AE", @@ -595,7 +616,10 @@ } }, "meta": { - "name": "Button_11" + "name": "Button_11", + "tooltip": { + "enabled": true + } }, "position": { "height": 0.019, @@ -603,6 +627,24 @@ "x": 0.4031, "y": 0.1155 }, + "propConfig": { + "meta.tooltip.text": { + "binding": { + "config": { + "expression": "if({this.props.enabled},{this.props.text} +\u0027 Button\u0027,\"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": { "style": { "backgroundColor": "#3779AE", @@ -628,7 +670,10 @@ } }, "meta": { - "name": "Button_12" + "name": "Button_12", + "tooltip": { + "enabled": true + } }, "position": { "height": 0.019, @@ -636,6 +681,24 @@ "x": 0.4031, "y": 0.1384 }, + "propConfig": { + "meta.tooltip.text": { + "binding": { + "config": { + "expression": "if({this.props.enabled},{this.props.text} +\u0027 Button\u0027,\"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": { "style": { "backgroundColor": "#3779AE", @@ -661,7 +724,10 @@ } }, "meta": { - "name": "Button_13" + "name": "Button_13", + "tooltip": { + "enabled": true + } }, "position": { "height": 0.019, @@ -669,6 +735,24 @@ "x": 0.4031, "y": 0.1613 }, + "propConfig": { + "meta.tooltip.text": { + "binding": { + "config": { + "expression": "if({this.props.enabled},{this.props.text} +\u0027 Button\u0027,\"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": { "style": { "backgroundColor": "#3779AE", @@ -694,7 +778,10 @@ } }, "meta": { - "name": "Button_14" + "name": "Button_14", + "tooltip": { + "enabled": true + } }, "position": { "height": 0.019, @@ -702,6 +789,24 @@ "x": 0.4031, "y": 0.1841 }, + "propConfig": { + "meta.tooltip.text": { + "binding": { + "config": { + "expression": "if({this.props.enabled},{this.props.text} +\u0027 Button\u0027,\"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": { "style": { "backgroundColor": "#3779AE", @@ -727,7 +832,10 @@ } }, "meta": { - "name": "Button_15" + "name": "Button_15", + "tooltip": { + "enabled": true + } }, "position": { "height": 0.019, @@ -735,6 +843,24 @@ "x": 0.4031, "y": 0.2069 }, + "propConfig": { + "meta.tooltip.text": { + "binding": { + "config": { + "expression": "if({this.props.enabled},{this.props.text} +\u0027 Button\u0027,\"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": { "style": { "backgroundColor": "#3779AE", @@ -760,7 +886,10 @@ } }, "meta": { - "name": "Button_16" + "name": "Button_16", + "tooltip": { + "enabled": true + } }, "position": { "height": 0.019, @@ -768,6 +897,24 @@ "x": 0.4031, "y": 0.2299 }, + "propConfig": { + "meta.tooltip.text": { + "binding": { + "config": { + "expression": "if({this.props.enabled},{this.props.text} +\u0027 Button\u0027,\"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": { "style": { "backgroundColor": "#3779AE", @@ -793,7 +940,10 @@ } }, "meta": { - "name": "Button_17" + "name": "Button_17", + "tooltip": { + "enabled": true + } }, "position": { "height": 0.019, @@ -801,6 +951,24 @@ "x": 0.4031, "y": 0.2526 }, + "propConfig": { + "meta.tooltip.text": { + "binding": { + "config": { + "expression": "if({this.props.enabled},{this.props.text} +\u0027 Button\u0027,\"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": { "style": { "backgroundColor": "#3779AE", @@ -826,7 +994,10 @@ } }, "meta": { - "name": "Button_18" + "name": "Button_18", + "tooltip": { + "enabled": true + } }, "position": { "height": 0.019, @@ -834,6 +1005,24 @@ "x": 0.4031, "y": 0.2755 }, + "propConfig": { + "meta.tooltip.text": { + "binding": { + "config": { + "expression": "if({this.props.enabled},{this.props.text} +\u0027 Button\u0027,\"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": { "style": { "backgroundColor": "#3779AE", @@ -859,7 +1048,10 @@ } }, "meta": { - "name": "Button_19" + "name": "Button_19", + "tooltip": { + "enabled": true + } }, "position": { "height": 0.019, @@ -867,6 +1059,24 @@ "x": 0.4031, "y": 0.2984 }, + "propConfig": { + "meta.tooltip.text": { + "binding": { + "config": { + "expression": "if({this.props.enabled},{this.props.text} +\u0027 Button\u0027,\"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": { "style": { "backgroundColor": "#3779AE", @@ -892,7 +1102,10 @@ } }, "meta": { - "name": "Button_20" + "name": "Button_20", + "tooltip": { + "enabled": true + } }, "position": { "height": 0.019, @@ -900,6 +1113,24 @@ "x": 0.4034, "y": 0.0702 }, + "propConfig": { + "meta.tooltip.text": { + "binding": { + "config": { + "expression": "if({this.props.enabled},{this.props.text} +\u0027 Button\u0027,\"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": { "position": "center"