added settings to be able fill empty intent and define it's label

This commit is contained in:
Jakub Trllo 2022-08-01 18:38:54 +02:00
parent e7c7390211
commit 8a55a83d7d
2 changed files with 14 additions and 5 deletions

View file

@ -26,13 +26,14 @@
"linux": []
},
"intent": {
"allow_empty_intent": true,
"empty_intent_label": "",
"items": {
"-": "-",
"wip": "WIP",
"final": "Final",
"test": "Test"
},
"default": "-"
"default": ""
},
"custom_attributes": {
"show": {

View file

@ -50,8 +50,15 @@
"is_group": true,
"children": [
{
"type": "label",
"label": "Intent"
"type": "boolean",
"key": "allow_empty_intent",
"label": "Allow empty intent"
},
{
"type": "text",
"key": "empty_intent_label",
"label": "Empty item label",
"placeholder": "< Not set >"
},
{
"type": "dict-modifiable",
@ -64,7 +71,8 @@
{
"key": "default",
"type": "text",
"label": "Default Intent"
"label": "Default Intent",
"placeholder": "< First available >"
},
{
"type": "separator"