Browse Source

fix: prevent copy in external package

Ahmad Kholid 2 years ago
parent
commit
f6e1907943
1 changed files with 2 additions and 0 deletions
  1. 2 0
      src/newtab/pages/workflows/[id].vue

+ 2 - 0
src/newtab/pages/workflows/[id].vue

@@ -1459,6 +1459,8 @@ function onKeydown({ ctrlKey, metaKey, shiftKey, key, target }) {
   )
   )
     return;
     return;
 
 
+  if (isPackage && workflow.value.isExternal) return;
+
   const command = (keyName) => (ctrlKey || metaKey) && keyName === key;
   const command = (keyName) => (ctrlKey || metaKey) && keyName === key;
   if (command('c')) {
   if (command('c')) {
     copySelectedElements();
     copySelectedElements();