Skip to content

armgit / core

Public Imported from GitHub
0

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

Fix KPI panel showing 'add attribute' button while it should not (#2954)

Martin Peeterscd4fedbe05ae
diff --git a/ui/component/or-attribute-card/src/index.ts b/ui/component/or-attribute-card/src/index.ts
index 585931fa8..fcd483567 100644
--- a/ui/component/or-attribute-card/src/index.ts
+++ b/ui/component/or-attribute-card/src/index.ts
@@ -343,7 +343,7 @@ export class OrAttributeCard extends LitElement {
<div class="panel panel-empty">
<div class="panel-content-wrapper">
<div class="panel-content">
- ${this.shouldHideAttributePicker() ? html`
+ ${!this.shouldHideAttributePicker() ? html`
<or-vaadin-button class="button" @click=${() => this._openDialog()}>
<or-icon slot="prefix" icon="plus"></or-icon>
<or-translate value="selectAttribute"></or-translate>