100% open-source IoT Platform - Integrate your devices, add intelligence, build custom apps
Java asset-managementbuildingdashboarddataplatformdevice-managementedge-computingenergyenergy-managementenergy-monitorfleet-managementfleet-telematicsiotiot-applicationiot-platformmodbusmqttmqtt-brokerota-updaterules-enginesmartcity
send attr config by clicking ok button
Vincent09ac79372b3b
diff --git a/ui/component/or-asset-viewer/src/components/or-attributes-modal.ts b/ui/component/or-asset-viewer/src/components/or-attributes-modal.tsindex 147f8e9f5..88947ca59 100644--- a/ui/component/or-asset-viewer/src/components/or-attributes-modal.ts+++ b/ui/component/or-asset-viewer/src/components/or-attributes-modal.ts@@ -51,6 +51,15 @@ export class OrAttributesModal extends LitElement {private checkboxChanged = (attributeName: string, newValue: boolean) => {const index = this.selectedAttributes.findIndex((attr: AttributesConfig) => attr.name === attributeName);this.selectedAttributes[index] = {name: attributeName, value: newValue};++ private sendSelectedAttributes = () => {+ this.dispatchEvent(+ new CustomEvent("UpdateSelectedAttributes", {+ bubbles: true,+ composed: true,+ detail: this.selectedAttributes+ })+ );}protected render() {@@ -85,6 +94,7 @@ export class OrAttributesModal extends LitElement {.type="${InputType.BUTTON}"label="${i18next.t("ok")}"class="mdc-button mdc-dialog__button"+ @click="${() => this.sendSelectedAttributes()}"data-mdc-dialog-action="yes"></or-input></footer>