Skip to content

Commit e823387

Browse files
committed
Added 1 new icon
Signed-off-by: Chin Yi Han <[email protected]>
1 parent c82df7a commit e823387

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

blueprint/designer.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1255,7 +1255,7 @@
12551255
// Helper function: Creates the div head of the HTML element
12561256
function createDivHead(item, item_id, item_array) {
12571257
if (item_array[2] == "icon_type") {
1258-
if (params[item] == "valve" || "commbit" || "alarm" || "TMP" || "bottle" || "relay" || "switch" || "fpd" || "ground" || "splitring" || "source" || "postreg" || "ice" || "gauge" || "ex" || "cp" || "cc" || "egun" || "egunSwitchHV" || "egunSwitchGND" || "temperature" || "pressure" || "humidity" || "email" || "dewpoint" || "K35" || "K65") {
1258+
if (params[item] == "valve" || "commbit" || "alarm" || "TMP" || "bottle" || "relay" || "switch" || "fpd" || "ground" || "splitring" || "source" || "postreg" || "ice" || "gauge" || "ex" || "cp" || "cc" || "egun" || "egunSwitchHV" || "egunSwitchGND" || "temperature" || "pressure" || "humidity" || "email" || "dewpoint" || "K35" || "K65" || "beamlineMOS") {
12591259
div_head = "<div " + "class='varbox box_highlight' " +"id=" + item_id + " " + "data-type='"+ item_array[0].replace(/_/g, '-') + "' " + "icon-type='"+ params[item] + "' ";
12601260
}
12611261
} else {
@@ -1934,7 +1934,7 @@
19341934

19351935
} else if ('{{ data["typedef"][ category ][element][item]["type"] }}' == "select"){
19361936
{% if (item == "icon_type") %}
1937-
var iconOptions = ["valve", "commbit", "alarm", "TMP", "bottle", "relay", "switch", "fpd", "ground", "splitring", "source", "postreg", "ice", "gauge", "ex", "cp", "cc", "egun", "egunSwitchHV", "egunSwitchGND", "temperature", "pressure", "humidity", "email", "dewpoint", "K35", "K65"];
1937+
var iconOptions = ["valve", "commbit", "alarm", "TMP", "bottle", "relay", "switch", "fpd", "ground", "splitring", "source", "postreg", "ice", "gauge", "ex", "cp", "cc", "egun", "egunSwitchHV", "egunSwitchGND", "temperature", "pressure", "humidity", "email", "dewpoint", "K35", "K65", "beamlineMOS"];
19381938
params[ bind_param + "-" + '{{ element }}' + "-" + '{{ item }}' + "-" + opt + "-" + encode_data] = '{{ data["typedef"][ category ][element][item]["value"] }}';
19391939
folder.add(params, bind_param + "-" + '{{ element }}' + "-" + '{{ item }}' + "-" + opt + "-" + encode_data, iconOptions).name('{{ item }} ' + "{{ element }}");
19401940
{% else %}

typedef/icon.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
- "dewpoint"
2929
- "K35"
3030
- "K65"
31+
- "beamlineMOS"
3132
"type": "select"
3233
"optional": "No"
3334
"data": "Yes"

0 commit comments

Comments
 (0)