FEATURE: Added execution caching to reduce database access

This commit is contained in:
frikky
2020-12-31 14:34:57 +01:00
parent 848fabe789
commit 121629fdfa
10 changed files with 268 additions and 130 deletions
+5 -2
View File
@@ -6034,8 +6034,9 @@ const AngularWorkflow = (props) => {
//}
to_be_copied.replace(" ", "_")
var copyText = document.getElementById("copy_element_shuffle");
if (copyText !== null) {
const elementName = "copy_element_shuffle"
var copyText = document.getElementById(elementName);
if (copyText !== null && copyText !== null) {
navigator.clipboard.writeText(to_be_copied)
copyText.select();
copyText.setSelectionRange(0, 99999); /* For mobile devices */
@@ -6044,6 +6045,8 @@ const AngularWorkflow = (props) => {
document.execCommand("copy");
alert.success("Copied "+to_be_copied)
console.log("COPYING!")
} else {
console.log("Couldn't find element ", elementName)
}
}