Skip to content

Commit

Permalink
Hide if disabled, show only text if enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
Bruno Abreu committed May 13, 2021
1 parent bcfa2bb commit 632abbd
Showing 1 changed file with 32 additions and 2 deletions.
34 changes: 32 additions & 2 deletions manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -205,12 +205,42 @@
}
}
}
},
"dependencies": {
"requiresAuthorization": {
"oneOf": [
{
"properties": {
"requiresAuthorization": {
"enum": [false]
}
}
},
{
"properties": {
"requiresAuthorization": {
"enum": [true]
},
"b2bEnabled": {
"title": "admin/store.b2benabled.title",
"type": "string",
"format": "read-only",
"default": "true"
}
}
}
]
}
}
},
"settingsUiSchema": {
"requiresAuthorization": {
"ui:disabled": true
}
"ui:widget": "hidden"
},
"b2bEnabled": {
"ui:disabled": "true"
},
"ui:order": ["storeName", "requiresAuthorization", "b2bEnabled", "*"]
},
"$schema": "https://raw.githubusercontent.com/vtex/node-vtex-api/master/gen/manifest.schema"
}

0 comments on commit 632abbd

Please sign in to comment.