Merge branch 'fix'
This commit is contained in:
@@ -167,6 +167,7 @@ export default class DynamicLogicConditionsStringItemBaseView extends View {
|
||||
model: this.model,
|
||||
name: this.field,
|
||||
selector: `[data-view-key="${key}"]`,
|
||||
readOnly: true,
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
@@ -72,6 +72,7 @@ export default class extends DynamicLogicConditionsStringItemBaseView {
|
||||
model: model,
|
||||
name: this.field,
|
||||
selector: `[data-view-key="${key}"]`,
|
||||
readOnly: true,
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
@@ -44,6 +44,7 @@ export default class extends DynamicLogicConditionsStringItemBaseView {
|
||||
params: {
|
||||
options: this.getMetadata().get(['entityDefs', this.scope, 'fields', this.field, 'options']) || []
|
||||
},
|
||||
readOnly: true,
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
@@ -37,12 +37,15 @@ export default class extends DynamicLogicConditionsStringItemBaseView {
|
||||
|
||||
const viewName = 'views/fields/link';
|
||||
|
||||
const foreignScope = this.getMetadata().get(['entityDefs', this.scope, 'fields', this.field, 'entity']) ||
|
||||
this.getMetadata().get(['entityDefs', this.scope, 'links', this.field, 'entity'])
|
||||
|
||||
this.createView('value', viewName, {
|
||||
model: this.model,
|
||||
name: 'link',
|
||||
selector: `[data-view-key="${key}"]`,
|
||||
foreignScope: this.getMetadata().get(['entityDefs', this.scope, 'fields', this.field, 'entity']) ||
|
||||
this.getMetadata().get(['entityDefs', this.scope, 'links', this.field, 'entity'])
|
||||
readOnly: true,
|
||||
foreignScope: foreignScope,
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
@@ -41,6 +41,7 @@ export default class extends DynamicLogicConditionsStringItemBaseView {
|
||||
model: this.model,
|
||||
name: this.field,
|
||||
selector: `[data-view-key="${key}"]`,
|
||||
readOnly: true,
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user