From 6275a6a2b3f6081e1e0e9901fe807c8ba1f83e88 Mon Sep 17 00:00:00 2001 From: cproudlock Date: Wed, 13 May 2026 18:29:00 -0400 Subject: [PATCH] imaging: add visual feedback to device-id copy button Click effect: button flashes green with "copied!" text and 1.15x scale pulse, reverts after 1.2s. Failure case (clipboard API blocked or HTTP context) shows red "failed" for 1.5s. Handler moved out of inline onclick into a single delegated click listener at the doc level so future copy buttons just need the .copy-btn class + data-copy-text attribute. Co-Authored-By: Claude Opus 4.7 (1M context) --- webapp/templates/imaging.html | 40 ++++++++++++++++++++++++++++++++--- 1 file changed, 37 insertions(+), 3 deletions(-) diff --git a/webapp/templates/imaging.html b/webapp/templates/imaging.html index a639951..4c15007 100644 --- a/webapp/templates/imaging.html +++ b/webapp/templates/imaging.html @@ -45,9 +45,9 @@ {% if s.pctype %}{{ s.pctype }}{% endif %} {% if s.machinenumber %}#{{ s.machinenumber }}{% endif %} {% if s.intune_device_id %}
Intune: {{ s.intune_device_id }} - +
{% endif %} @@ -135,3 +135,37 @@ Content-Type: application/json {% endblock %} + +{% block extra_scripts %} + +{% endblock %}