Skip to content
Snippets Groups Projects
Commit 374de80a authored by Matej Hrica's avatar Matej Hrica
Browse files

Add copy-to-clipboard button to /success

parent 9304aef2
No related branches found
No related tags found
No related merge requests found
......@@ -18,7 +18,14 @@
</tr>
<tr>
<th scope="row">accessToken</th>
<td> <textarea readonly th:text="${accessToken}"></textarea></td>
<td>
<textarea id="accessTokenTextArea" readonly th:text="${accessToken}"></textarea>
<br>
<button class="btn btn-outline-primary"
onclick="navigator.clipboard.writeText(document.getElementById('accessTokenTextArea').value)">
Copy to clipboard
</button>
</td>
</tr>
</tbody>
</table>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment