chore(frontend): use toast to show message when call copyToClipboard

This commit is contained in:
syuilo 2025-03-16 15:04:38 +09:00
parent 32844e4775
commit 81a0cbd294
21 changed files with 16 additions and 27 deletions

View file

@ -48,7 +48,6 @@ const XCode = defineAsyncComponent(() => import('@/components/MkCode.core.vue'))
function copy() {
copyToClipboard(props.code);
os.success();
}
</script>

View file

@ -194,7 +194,6 @@ function generate() {
function doCopy() {
copyToClipboard(result.value);
os.success();
}
//#endregion

View file

@ -90,7 +90,6 @@ function deleteCode() {
function copyInviteCode() {
copyToClipboard(props.invite.code);
os.success();
}
</script>

View file

@ -31,7 +31,6 @@ const props = withDefaults(defineProps<{
const copy_ = () => {
copyToClipboard(props.copy);
os.success();
};
</script>

View file

@ -100,7 +100,6 @@ function onClick(ev: MouseEvent) {
icon: 'ti ti-copy',
action: () => {
copyToClipboard(`:${props.name}:`);
os.success();
},
});

View file

@ -50,7 +50,6 @@ function onClick(ev: MouseEvent) {
icon: 'ti ti-copy',
action: () => {
copyToClipboard(props.emoji);
os.success();
},
});