We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bfc3395 commit 581f2fdCopy full SHA for 581f2fd
Console/BExIS.Web.Shell/Views/Tokens/Read.cshtml
@@ -4,7 +4,22 @@
4
ViewBag.Title = "Token";
5
}
6
7
+<script>
8
+ function myFunction() {
9
+ const text = @Html.Raw(Json.Encode(Model.Jwt));
10
+ navigator.clipboard.writeText(text)
11
+ .then(() => {
12
+ alert('JWT copied to clipboard!');
13
+ })
14
+ .catch(err => {
15
+ alert('Error copying JWT: ' + err);
16
+ });
17
+ }
18
+</script>
19
+
20
<div class="col-md-6" style="word-wrap: break-word">
21
@Html.LabelFor(m => m.Jwt)
22
@Html.DisplayFor(m => m.Jwt)
-</div>
23
+ <button id="jwt-copy" class="bx bx-copy" onclick="myFunction()">Copy</button>
24
+</div>
25
0 commit comments