fix
This commit is contained in:
parent
489978a2ba
commit
797da3baac
|
@ -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 ?? '',
|
||||||
|
|
Loading…
Reference in New Issue