diff --git a/nymea-app/ui/devicepages/GenericThingPage.qml b/nymea-app/ui/devicepages/GenericThingPage.qml index 6a16d699..6a29c9ed 100644 --- a/nymea-app/ui/devicepages/GenericThingPage.qml +++ b/nymea-app/ui/devicepages/GenericThingPage.qml @@ -133,6 +133,25 @@ ThingPageBase { swipe.right: RowLayout { height: delegate.height anchors.right: parent.right + MouseArea { + Layout.fillHeight: true + Layout.preferredWidth: height + visible: model.type === ThingModel.TypeStateType + + ColorIcon { + anchors.fill: parent + anchors.margins: app.margins + name: "../images/edit-copy.svg" + } + onClicked: { + swipe.close(); + print("opening logs for", delegate.stateType.id) + PlatformHelper.toClipBoard(root.thing.states.getState(delegate.stateType.id).value) + ToolTip.show(qsTr("ID copied to clipboard"), 500); + + } + } + MouseArea { Layout.fillHeight: true Layout.preferredWidth: height