Skip to content

armgit / core

Public Imported from GitHub
0

100% open-source IoT Platform - Integrate your devices, add intelligence, build custom apps

conditionally do things when panelconfig type is group

Vincentaffab3d47ab5
diff --git a/ui/component/or-asset-viewer/src/index.ts b/ui/component/or-asset-viewer/src/index.ts
index 362dcff39..2a3e16e62 100644
--- a/ui/component/or-asset-viewer/src/index.ts
+++ b/ui/component/or-asset-viewer/src/index.ts
@@ -518,6 +518,11 @@ export class OrAssetViewer extends subscribe(manager)(translate(i18next)(LitElem
` : ``}
`;
}
+ } else if (panelConfig && panelConfig.type === "group") {
+
+ content = html`
+ test
+ `;
} else {
content = html`
${attrs.sort((attr1, attr2) => attr1.name! < attr2.name! ? -1 : attr1.name! > attr2.name! ? 1 : 0).map((attr) => {