Skip to content

armgit / core

Public Imported from GitHub
0

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

add new panel in correct manner

Vincent7e6e0c2a19c4
diff --git a/ui/component/or-asset-viewer/src/index.ts b/ui/component/or-asset-viewer/src/index.ts
index 5c499cbc2..362dcff39 100644
--- a/ui/component/or-asset-viewer/src/index.ts
+++ b/ui/component/or-asset-viewer/src/index.ts
@@ -98,6 +98,10 @@ export class OrAssetViewer extends subscribe(manager)(translate(i18next)(LitElem
},
panels: {
+ "underlying assets": {
+ type: "group",
+ panelStyles: {gridColumn: "2 / -1"}
+ },
"info": {
type: "attribute",
hideOnMobile: true,
@@ -650,11 +654,6 @@ export class OrAssetViewer extends subscribe(manager)(translate(i18next)(LitElem
config.historyConfig = assetConfig.historyConfig || this.config.historyConfig;
}
}
- config.panels.group = {
- type: "group",
- hideOnMobile: true,
- panelStyles: {gridColumn: "2 / -1"}
- };
return config;
}