This commit is contained in:
kakkokari-gtyih 2024-09-15 18:33:04 +09:00
parent 489978a2ba
commit 797da3baac
1 changed files with 3 additions and 3 deletions

View File

@ -137,14 +137,14 @@ const headerActions = computed(() => clip.value && isOwned.value ? [{
menuItems.push({ menuItems.push({
icon: 'ti ti-link', icon: 'ti ti-link',
text: i18n.ts.copyUrl, text: i18n.ts.copyUrl,
handler: () => { action: () => {
copyToClipboard(`${url}/clips/${clip.value!.id}`); copyToClipboard(`${url}/clips/${clip.value!.id}`);
os.success(); os.success();
}, },
}, { }, {
icon: 'ti ti-code', icon: 'ti ti-code',
text: i18n.ts.genEmbedCode, text: i18n.ts.genEmbedCode,
handler: () => { action: () => {
genEmbedCode('clips', clip.value!.id); genEmbedCode('clips', clip.value!.id);
}, },
}); });
@ -153,7 +153,7 @@ const headerActions = computed(() => clip.value && isOwned.value ? [{
menuItems.push({ menuItems.push({
icon: 'ti ti-share', icon: 'ti ti-share',
text: i18n.ts.share, text: i18n.ts.share,
handler: async () => { action: async () => {
navigator.share({ navigator.share({
title: clip.value!.name, title: clip.value!.name,
text: clip.value!.description ?? '', text: clip.value!.description ?? '',