Bugfix on UI elements when no secret is found. Add copy secret button on successful retrieval. Include deployment information and updated example files.
This commit is contained in:
10
views/public/copySecret.js
Normal file
10
views/public/copySecret.js
Normal file
@ -0,0 +1,10 @@
|
||||
function copySecret(secret) {
|
||||
var tempText = document.createElement('input');
|
||||
tempText.style = 'position: absolute; left: -1000px; top: -1000px';
|
||||
tempText.value = secret;
|
||||
document.body.appendChild(tempText);
|
||||
tempText.select();
|
||||
document.execCommand('copy');
|
||||
document.body.removeChild(tempText);
|
||||
document.getElementById('copyButton').innerHTML = "- secret copied -";
|
||||
}
|
Reference in New Issue
Block a user