mirror of
https://github.com/jokob-sk/NetAlertX.git
synced 2025-12-07 09:36:05 -08:00
devSite to dropdown #930
This commit is contained in:
@@ -894,6 +894,7 @@ height: 50px;
|
|||||||
#settingsPage #add_option_NEWDEV_devOwner,
|
#settingsPage #add_option_NEWDEV_devOwner,
|
||||||
#settingsPage #copy_icons_NEWDEV_devIcon,
|
#settingsPage #copy_icons_NEWDEV_devIcon,
|
||||||
#settingsPage #add_icon_NEWDEV_devIcon,
|
#settingsPage #add_icon_NEWDEV_devIcon,
|
||||||
|
#settingsPage #add_option_NEWDEV_devSite,
|
||||||
#settingsPage #add_option_NEWDEV_devType
|
#settingsPage #add_option_NEWDEV_devType
|
||||||
{
|
{
|
||||||
display: none;
|
display: none;
|
||||||
|
|||||||
@@ -1446,18 +1446,30 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"function": "devSite",
|
"function": "devSite",
|
||||||
|
"events": [
|
||||||
|
"add_option"
|
||||||
|
],
|
||||||
"type": {
|
"type": {
|
||||||
"dataType": "string",
|
"dataType": "string",
|
||||||
"elements": [
|
"elements": [
|
||||||
{
|
{
|
||||||
"elementType": "input",
|
"elementType": "select",
|
||||||
"elementOptions": [],
|
"elementOptions": [],
|
||||||
"transformers": []
|
"transformers": []
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"default_value": "",
|
"default_value": "",
|
||||||
"options": [],
|
"options": [
|
||||||
|
"{value}"
|
||||||
|
],
|
||||||
|
"options_params": [
|
||||||
|
{
|
||||||
|
"name": "value",
|
||||||
|
"type": "sql",
|
||||||
|
"value": "SELECT DISTINCT '' AS id, '❌None' AS name UNION SELECT devSite AS id, devSite AS name FROM Devices WHERE devSite NOT IN ('', 'null') AND devSite IS NOT NULL UNION SELECT 'default' AS id, 'default' AS name UNION SELECT 'home', 'home' ORDER BY id;"
|
||||||
|
}
|
||||||
|
],
|
||||||
"localized": [
|
"localized": [
|
||||||
"name",
|
"name",
|
||||||
"description"
|
"description"
|
||||||
@@ -1488,7 +1500,7 @@
|
|||||||
"columns": [
|
"columns": [
|
||||||
{
|
{
|
||||||
"settingKey": "CUSTPROP_icon",
|
"settingKey": "CUSTPROP_icon",
|
||||||
"optionsOverride":"setting.CUSTPROP_icon",
|
"optionsOverride": "setting.CUSTPROP_icon",
|
||||||
"typeOverride": {
|
"typeOverride": {
|
||||||
"dataType": "string",
|
"dataType": "string",
|
||||||
"elements": [
|
"elements": [
|
||||||
@@ -1528,7 +1540,7 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"settingKey": "CUSTPROP_type",
|
"settingKey": "CUSTPROP_type",
|
||||||
"optionsOverride":"setting.CUSTPROP_type",
|
"optionsOverride": "setting.CUSTPROP_type",
|
||||||
"typeOverride": {
|
"typeOverride": {
|
||||||
"dataType": "string",
|
"dataType": "string",
|
||||||
"elements": [
|
"elements": [
|
||||||
@@ -1539,7 +1551,7 @@
|
|||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"settingKey": "CUSTPROP_name"
|
"settingKey": "CUSTPROP_name"
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user