Browse Source

fix: added some comments

pull/6441/head
sreehari jayaraj 1 year ago
parent
commit
6a69626024
  1. 2
      packages/nc-gui/components/project/InviteProjectCollabSection.vue
  2. 2
      packages/nc-gui/components/workspace/InviteSection.vue

2
packages/nc-gui/components/project/InviteProjectCollabSection.vue

@ -182,6 +182,8 @@ onKeyStroke('Backspace', () => {
const onPaste = (e: ClipboardEvent) => { const onPaste = (e: ClipboardEvent) => {
const pastedText = e.clipboardData?.getData('text') const pastedText = e.clipboardData?.getData('text')
const inputArray = pastedText?.split(',') || pastedText?.split(' ') const inputArray = pastedText?.split(',') || pastedText?.split(' ')
// if data is pasted to a already existing text in input
// we add existingInput + pasted data
if (inputArray?.length === 1 && inviteData.email.length > 1) { if (inputArray?.length === 1 && inviteData.email.length > 1) {
inputArray[0] = inviteData.email += inputArray[0] inputArray[0] = inviteData.email += inputArray[0]
} }

2
packages/nc-gui/components/workspace/InviteSection.vue

@ -138,6 +138,8 @@ onKeyStroke('Backspace', () => {
const onPaste = (e: ClipboardEvent) => { const onPaste = (e: ClipboardEvent) => {
const pastedText = e.clipboardData?.getData('text') const pastedText = e.clipboardData?.getData('text')
const inputArray = pastedText?.split(',') || pastedText?.split(' ') const inputArray = pastedText?.split(',') || pastedText?.split(' ')
// if data is pasted to a already existing text in input
// we add existingInput + pasted data
if (inputArray?.length === 1 && inviteData.email.length > 1) { if (inputArray?.length === 1 && inviteData.email.length > 1) {
inputArray[0] = inviteData.email += inputArray[0] inputArray[0] = inviteData.email += inputArray[0]
} }

Loading…
Cancel
Save