ngx-dynamic-entity-builder 1.8.0 → 1.8.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1415,6 +1415,14 @@ class BuilderStore {
|
|
|
1415
1415
|
}
|
|
1416
1416
|
validate(config) {
|
|
1417
1417
|
const problems = [];
|
|
1418
|
+
// Core calls a config with no tabs an error — nothing can render — and the builder used
|
|
1419
|
+
// to report only a warning and leave Save enabled. That let the builder save a config
|
|
1420
|
+
// `dynamic-entity validate` then rejected in CI: the mirror of the bug where it refused
|
|
1421
|
+
// one core accepted. The builder defers to core here, as it already does for the scope
|
|
1422
|
+
// rule, and the message is core's so the two read the same in both places.
|
|
1423
|
+
if (!config.tabs?.length) {
|
|
1424
|
+
problems.push({ level: 'error', message: 'At least one tab is required.' });
|
|
1425
|
+
}
|
|
1418
1426
|
if (!config.entity || !config.entity.trim()) {
|
|
1419
1427
|
problems.push({ level: 'error', message: 'Entity name is required.' });
|
|
1420
1428
|
}
|