mirror of
https://github.com/VueFileManager/vuefilemanager.git
synced 2026-04-18 16:22:14 +00:00
CreatePersonaTokenPopup implementation
This commit is contained in:
@@ -1,28 +1,27 @@
|
||||
<template>
|
||||
<div class="inline-wrapper icon-append copy-input" :class="size" @click="copyUrl">
|
||||
<input ref="sel" :value="item.shared.link" id="link-input" type="text" class="input-text" readonly>
|
||||
<input ref="sel" :value="str" id="link-input" type="text" class="input-text" readonly>
|
||||
<div class="multi-icon">
|
||||
<div class="icon-item group hover-bg-theme-100">
|
||||
<link-icon v-if="! isCopiedLink" size="14" class="group-hover-text-theme hover-text-theme"/>
|
||||
<copy-icon v-if="! isCopiedLink" size="14" class="group-hover-text-theme hover-text-theme"/>
|
||||
<check-icon v-if="isCopiedLink" size="14" class="group-hover-text-theme hover-text-theme"/>
|
||||
</div>
|
||||
<div class="icon-item group hover-bg-theme-100" @click.stop.prevent="menuForEmail">
|
||||
<send-icon size="14" class="group-hover-text-theme hover-text-theme" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { LinkIcon, CheckIcon, SendIcon } from 'vue-feather-icons'
|
||||
import { events } from '@/bus'
|
||||
import { CopyIcon, CheckIcon, SendIcon } from 'vue-feather-icons'
|
||||
|
||||
export default {
|
||||
name: 'CopyInput',
|
||||
props: ['size', 'item'],
|
||||
props: [
|
||||
'size',
|
||||
'str'
|
||||
],
|
||||
components: {
|
||||
CheckIcon,
|
||||
LinkIcon,
|
||||
CopyIcon,
|
||||
SendIcon
|
||||
},
|
||||
data() {
|
||||
@@ -31,13 +30,6 @@ export default {
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
menuForEmail() {
|
||||
events.$emit('popup:open', {
|
||||
name: 'share-edit',
|
||||
item: this.item,
|
||||
sentToEmail: true,
|
||||
})
|
||||
},
|
||||
copyUrl() {
|
||||
|
||||
// Get input value
|
||||
@@ -76,6 +68,7 @@ export default {
|
||||
border-top-right-radius: 8px;
|
||||
|
||||
line,
|
||||
rect,
|
||||
path,
|
||||
polygon {
|
||||
color: $text;
|
||||
@@ -93,6 +86,7 @@ export default {
|
||||
line,
|
||||
polyline,
|
||||
path,
|
||||
rect,
|
||||
polygon {
|
||||
color: inherit;
|
||||
}
|
||||
@@ -158,6 +152,7 @@ export default {
|
||||
|
||||
line,
|
||||
path,
|
||||
rect,
|
||||
polygon {
|
||||
color: inherit !important;
|
||||
}
|
||||
@@ -165,8 +160,6 @@ export default {
|
||||
.icon-item {
|
||||
border-color: #333333;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
.copy-input {
|
||||
|
||||
Reference in New Issue
Block a user