Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HCK-7370, HCK-7371: details tab of any object only declared tag at sc #132

Prev Previous commit
Next Next commit
HCK-7852: add disable input for tag value if tag name is not selected (
  • Loading branch information
serhii-filonenko authored Sep 5, 2024
commit 077b570e2ffbdfcefc11f8217ae70c8629c8aeca
41 changes: 35 additions & 6 deletions properties_pane/container_level/containerLevelConfig.json
Original file line number Diff line number Diff line change
@@ -214,20 +214,29 @@ making sure that you maintain a proper JSON format.
"source": "tags.${tagName}.allowedValues.*.value"
},
"dependency": {
"type": "or",
"type": "and",
"values": [
{
"source": "tags.${tagName}",
"key": "allowedValues",
"isEmpty": true
"key": "tagName",
"pattern": "^.+$"
},
{
"type": "not",
"type": "or",
"values": [
{
"source": "tags.${tagName}",
"key": "allowedValues",
"exist": true
"isEmpty": true
},
{
"type": "not",
"values": [
{
"source": "tags.${tagName}",
"key": "allowedValues",
"exist": true
}
]
}
]
}
@@ -237,6 +246,26 @@ making sure that you maintain a proper JSON format.
"validation": {
"regex": "^.{0,256}$"
}
},
{
"propertyName": "Value",
"propertyKeyword": "tagValue",
"propertyTooltip": "",
"propertyType": "select",
"disabled": true,
"dependency": {
"type": "or",
"values": [
{
"key": "tagName",
"exist": false
},
{
"key": "tagName",
"pattern": "^$"
}
]
}
}
]
},
43 changes: 36 additions & 7 deletions properties_pane/entity_level/entityLevelConfig.json
Original file line number Diff line number Diff line change
@@ -1072,22 +1072,31 @@ making sure that you maintain a proper JSON format.
"source": "tags.${tagName}.allowedValues.*.value"
},
"dependency": {
"type": "or",
"type": "and",
"values": [
{
"level": "container",
"source": "tags.${tagName}",
"key": "allowedValues",
"isEmpty": true
"key": "tagName",
"pattern": "^.+$"
},
{
"type": "not",
"type": "or",
"values": [
{
"level": "container",
"source": "tags.${tagName}",
"key": "allowedValues",
"exist": true
"isEmpty": true
},
{
"type": "not",
"values": [
{
"level": "container",
"source": "tags.${tagName}",
"key": "allowedValues",
"exist": true
}
]
}
]
}
@@ -1097,6 +1106,26 @@ making sure that you maintain a proper JSON format.
"validation": {
"regex": "^.{0,256}$"
}
},
{
"propertyName": "Value",
"propertyKeyword": "tagValue",
"propertyTooltip": "",
"propertyType": "select",
"disabled": true,
"dependency": {
"type": "or",
"values": [
{
"key": "tagName",
"exist": false
},
{
"key": "tagName",
"pattern": "^$"
}
]
}
}
]
},
Loading