- Prevent submit shared form

- Send shared link from FileInfoPanel.vue
This commit is contained in:
Peter Papp
2021-01-30 14:01:36 +01:00
parent eb2e39cd32
commit 267556b39d
6 changed files with 14 additions and 15 deletions
@@ -1,6 +1,6 @@
<template>
<div class="inline-wrapper icon-append copy-input" :class="size" @click="copyUrl">
<input ref="sel" :value="value" id="link-input" type="text" class="input-text" readonly>
<input ref="sel" :value="item.shared.link" id="link-input" type="text" class="input-text" readonly>
<div class="multi-icon">
<div class="icon-item">
<link-icon v-if="! isCopiedLink" size="14"></link-icon>
@@ -19,7 +19,7 @@ import { events } from '@/bus'
export default {
name: 'CopyInput',
props: ['size', 'value'],
props: ['size', 'item'],
components: {
CheckIcon,
LinkIcon,
@@ -32,7 +32,11 @@ export default {
},
methods: {
menuForEmail() {
events.$emit('openSendToRecipientsMenu')
events.$emit('popup:open', {
name: 'share-edit',
item: this.item,
sentToEmail: true,
})
},
copyUrl() {