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
Set action on push notification confirm button (#2794)
Michael Rademaker2df42e665bfe
diff --git a/ui/component/or-rules/src/json-viewer/forms/or-rule-form-push-notification.ts b/ui/component/or-rules/src/json-viewer/forms/or-rule-form-push-notification.tsindex e0b17f621..2e132723b 100644--- a/ui/component/or-rules/src/json-viewer/forms/or-rule-form-push-notification.ts+++ b/ui/component/or-rules/src/json-viewer/forms/or-rule-form-push-notification.ts@@ -148,7 +148,8 @@ export class OrRuleFormPushNotification extends translate(i18next)(LitElement) {if(elem.checkValidity()) {message.buttons = message.buttons || [];message.buttons[key] = {- title: elem.value+ title: elem.value,+ action: key === 0 ? message.action : undefined} as PushNotificationButton;this.dispatchEvent(new OrRulesJsonRuleChangedEvent());}