diff --git a/CHANGELOG.md b/CHANGELOG.md index 930b9a6d..d5601ae4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,8 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html). ## [Unreleased] +### Changed +- Disable B2B behavior flag. ## [2.116.0] - 2021-04-05 ### Changed diff --git a/manifest.json b/manifest.json index e45407c9..c7d0d20b 100644 --- a/manifest.json +++ b/manifest.json @@ -88,10 +88,7 @@ "type": "string" } }, - "required": [ - "rel", - "href" - ] + "required": ["rel", "href"] }, "description": "admin/store.faviconLinks.description" }, @@ -208,7 +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:widget": "hidden" + }, + "b2bEnabled": { + "ui:disabled": "true" + }, + "ui:order": ["storeName", "requiresAuthorization", "b2bEnabled", "*"] + }, "$schema": "https://raw.githubusercontent.com/vtex/node-vtex-api/master/gen/manifest.schema" }