fix(core): update
This commit is contained in:
parent
19081caacd
commit
2efa465930
@ -130,13 +130,14 @@ export class WccProperties extends LitElement {
|
|||||||
|
|
||||||
.warning {
|
.warning {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
background: #800000;
|
background: #222;
|
||||||
|
color: #CCC;
|
||||||
top: 0px;
|
top: 0px;
|
||||||
bottom: 0px;
|
bottom: 0px;
|
||||||
left: 0px;
|
left: 0px;
|
||||||
right: 0px;
|
right: 520px;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
padding: 20px;
|
padding: 35px;
|
||||||
font-size: 25px;
|
font-size: 25px;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
@ -256,6 +257,7 @@ export class WccProperties extends LitElement {
|
|||||||
console.log(`Got Dees-Element for property evaluation.`);
|
console.log(`Got Dees-Element for property evaluation.`);
|
||||||
const anonItem: any = this.selectedItem;
|
const anonItem: any = this.selectedItem;
|
||||||
if (!anonItem) {
|
if (!anonItem) {
|
||||||
|
this.warning = 'no element selected';
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
console.log(anonItem.elementProperties);
|
console.log(anonItem.elementProperties);
|
||||||
@ -268,12 +270,15 @@ export class WccProperties extends LitElement {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (!firstFoundInstantiatedElement) {
|
if (!firstFoundInstantiatedElement) {
|
||||||
|
this.warning = `no first instantiated element found for >>${anonItem.name}<<`;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
const classProperties: Map<string, any> = anonItem.elementProperties;
|
const classProperties: Map<string, any> = anonItem.elementProperties;
|
||||||
if (!classProperties) {
|
if (!classProperties) {
|
||||||
|
this.warning = `selected element >>${anonItem.name}<< does not expose element properties`;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
this.warning = null;
|
||||||
const propertyArray: TemplateResult[] = [];
|
const propertyArray: TemplateResult[] = [];
|
||||||
for (const key of classProperties.keys()) {
|
for (const key of classProperties.keys()) {
|
||||||
if (key === 'goBright' || key === 'domtools') {
|
if (key === 'goBright' || key === 'domtools') {
|
||||||
@ -337,7 +342,8 @@ export class WccProperties extends LitElement {
|
|||||||
}
|
}
|
||||||
this.propertyContent = propertyArray;
|
this.propertyContent = propertyArray;
|
||||||
} else {
|
} else {
|
||||||
console.log(`Cannot extract properties of ${(this.selectedItem as any)?.name}`)
|
console.log(`Cannot extract properties of ${(this.selectedItem as any)?.name}`);
|
||||||
|
this.warning = `You selected a page.`;
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user