From a1768e50dacc9a6eb64d4be66ad6d146a8928391 Mon Sep 17 00:00:00 2001 From: Terrtia Date: Mon, 29 Nov 2021 11:08:14 +0100 Subject: [PATCH] chg: [ail sync ui] copy to clipboard ail_uuid, ail server key --- .../ail_2_ail/ail_2_ail_dashboard.html | 26 ++++++++++++++----- .../templates/ail_2_ail/view_ail_server.html | 8 ++++++ 2 files changed, 27 insertions(+), 7 deletions(-) diff --git a/var/www/templates/ail_2_ail/ail_2_ail_dashboard.html b/var/www/templates/ail_2_ail/ail_2_ail_dashboard.html index e57943f5..d407bc91 100644 --- a/var/www/templates/ail_2_ail/ail_2_ail_dashboard.html +++ b/var/www/templates/ail_2_ail/ail_2_ail_dashboard.html @@ -31,16 +31,23 @@
-
-
-
AIL UUID:
-
-
-
- {{ ail_uuid }} +
+
+
+ AIL UUID
+
+ {{ ail_uuid }} + +
+
+ +
+
@@ -97,6 +104,11 @@ $(document).ready(function(){ }); +function copy_ail_uuid() { + ail_uuid = $('#ail_uuid').val(); + navigator.clipboard.writeText(ail_uuid); +} + function toggle_sidebar(){ if($('#nav_menu').is(':visible')){ $('#nav_menu').hide(); diff --git a/var/www/templates/ail_2_ail/view_ail_server.html b/var/www/templates/ail_2_ail/view_ail_server.html index f1ea410b..d4d75e67 100644 --- a/var/www/templates/ail_2_ail/view_ail_server.html +++ b/var/www/templates/ail_2_ail/view_ail_server.html @@ -74,6 +74,10 @@ Api Key {{server_metadata['api_key']}} + + @@ -220,6 +224,10 @@ $(document).ready(function(){ }); +function copy_api_key() { + api_key = $('#api_key').val(); + navigator.clipboard.writeText(api_key); +} function toggle_sidebar(){ if($('#nav_menu').is(':visible')){