[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 authored and GitHub committed 2024-05-03 10:07:59 -07:00
1 parent f655a8ae01
commit 5427c6247f
15 files changed
+91 -37

No files matched your search

+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)
}