Added header control on generated apps

This commit is contained in:
frikky
2021-05-24 09:54:01 +02:00
parent 86836623cc
commit 08e159d4c2
7 changed files with 129 additions and 13 deletions
+12 -6
View File
@@ -5664,13 +5664,17 @@ const AngularWorkflow = (props) => {
id="webhook_uri_field"
onClick={() => {
var copyText = document.getElementById("webhook_uri_field")
navigator.clipboard.writeText(copyText.value)
copyText.select()
copyText.setSelectionRange(0, 99999) /* For mobile devices */
if (copyText !== undefined && copyText !== null) {
navigator.clipboard.writeText(copyText.value)
copyText.select()
copyText.setSelectionRange(0, 99999) /* For mobile devices */
/* Copy the text inside the text field */
document.execCommand("copy")
alert.success("Copied Webhook URL")
/* Copy the text inside the text field */
document.execCommand("copy")
alert.success("Copied Webhook URL")
} else {
console.log("Couldn't find webhook URI field: ", copyText)
}
}}
InputProps={{
style:{
@@ -6848,6 +6852,8 @@ const AngularWorkflow = (props) => {
/* Copy the text inside the text field */
document.execCommand("copy")
alert.success("Copied data")
} else {
console.log("Failed to copy from "+elementName+": ", copyText)
}
}