Removed debugging naming from readable bindings
This commit is contained in:
parent
d45642da98
commit
8f153eef65
|
@ -364,6 +364,7 @@ const getContextBindings = (asset, componentId) => {
|
||||||
* Generates a set of bindings for a given component context
|
* Generates a set of bindings for a given component context
|
||||||
*/
|
*/
|
||||||
const generateComponentContextBindings = (asset, componentContext) => {
|
const generateComponentContextBindings = (asset, componentContext) => {
|
||||||
|
console.log("Hello ")
|
||||||
const { component, definition, contexts } = componentContext
|
const { component, definition, contexts } = componentContext
|
||||||
if (!component || !definition || !contexts?.length) {
|
if (!component || !definition || !contexts?.length) {
|
||||||
return []
|
return []
|
||||||
|
@ -456,15 +457,11 @@ const generateComponentContextBindings = (asset, componentContext) => {
|
||||||
context,
|
context,
|
||||||
definition
|
definition
|
||||||
)
|
)
|
||||||
|
|
||||||
// Temporarily append scope for debugging
|
|
||||||
const scope = `[${(context.scope || "global").toUpperCase()}]`
|
|
||||||
|
|
||||||
// Create the binding object
|
// Create the binding object
|
||||||
bindings.push({
|
bindings.push({
|
||||||
type: "context",
|
type: "context",
|
||||||
runtimeBinding,
|
runtimeBinding,
|
||||||
readableBinding: `${scope} ${readableBinding}`,
|
readableBinding: `${readableBinding}`,
|
||||||
// Field schema and provider are required to construct relationship
|
// Field schema and provider are required to construct relationship
|
||||||
// datasource options, based on bindable properties
|
// datasource options, based on bindable properties
|
||||||
fieldSchema,
|
fieldSchema,
|
||||||
|
@ -475,7 +472,7 @@ const generateComponentContextBindings = (asset, componentContext) => {
|
||||||
category: bindingCategory.category,
|
category: bindingCategory.category,
|
||||||
icon: bindingCategory.icon,
|
icon: bindingCategory.icon,
|
||||||
display: {
|
display: {
|
||||||
name: `${scope} ${fieldSchema.name || key}`,
|
name: `${fieldSchema.name || key}`,
|
||||||
type: fieldSchema.type,
|
type: fieldSchema.type,
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in New Issue