[Enhancement] Add "Copy JSON" action button to help when troubleshooting (#224)

* [WIP] [skip ci]

* Added 'copy JSON' button to all dropdowns; hopefully fixed some CSS silliness
This commit is contained in:
Kieran
2024-05-03 10:07:59 -07:00
committed by GitHub
parent f655a8ae01
commit 5427c6247f
15 changed files with 91 additions and 37 deletions
+6
View File
@@ -22,6 +22,12 @@ window.copyTextToClipboard = async (text) => {
}
}
window.copyWithCallbacks = async (text, onCopy, onAfterDelay, delay = 4000) => {
await window.copyTextToClipboard(text)
onCopy()
setTimeout(onAfterDelay, delay)
}
window.markVersionAsSeen = (versionString) => {
localStorage.setItem('seenVersion', versionString)
}