changes
This commit is contained in:
@@ -1,6 +1,4 @@
|
||||
<script setup>
|
||||
const { $buildFileUrl, $copyToClipboard } = useNuxtApp();
|
||||
|
||||
const props = defineProps({
|
||||
className: String,
|
||||
image: Object,
|
||||
@@ -8,14 +6,12 @@ const props = defineProps({
|
||||
downloadImage: Function,
|
||||
openDeleteImageConfirm: Function,
|
||||
});
|
||||
|
||||
const url = $buildFileUrl(props.image.file__file);
|
||||
</script>
|
||||
<template>
|
||||
<div :class="['buttons has-addons', className]">
|
||||
<button
|
||||
class="button is-small is-white"
|
||||
@click="$copyToClipboard(url)"
|
||||
@click="$copyToClipboard($buildFileUrl(props.image.file__file))"
|
||||
title="Sao chép link"
|
||||
>
|
||||
<span class="icon">
|
||||
|
||||
Reference in New Issue
Block a user