37 lines
1.1 KiB
Diff
37 lines
1.1 KiB
Diff
|
diff --git a/packages/client/src/scripts/get-note-menu.ts b/packages/client/src/scripts/get-note-menu.ts
|
||
|
index 4826cd7..0d928a4 100644
|
||
|
--- a/packages/client/src/scripts/get-note-menu.ts
|
||
|
+++ b/packages/client/src/scripts/get-note-menu.ts
|
||
|
@@ -169,7 +169,7 @@ export function getNoteMenu(props: {
|
||
|
function share(): void {
|
||
|
navigator.share({
|
||
|
title: i18n.t('noteOf', { user: appearNote.user.name }),
|
||
|
- text: appearNote.text,
|
||
|
+ //text: appearNote.text,
|
||
|
url: `${url}/notes/${appearNote.id}`,
|
||
|
});
|
||
|
}
|
||
|
@@ -209,6 +209,10 @@ export function getNoteMenu(props: {
|
||
|
icon: 'fas fa-copy',
|
||
|
text: i18n.ts.copyContent,
|
||
|
action: copyContent,
|
||
|
+ }, {
|
||
|
+ icon: 'fas fa-share-alt',
|
||
|
+ text: i18n.ts.share,
|
||
|
+ action: share,
|
||
|
}, {
|
||
|
icon: 'fas fa-link',
|
||
|
text: i18n.ts.copyLink,
|
||
|
@@ -220,11 +224,6 @@ export function getNoteMenu(props: {
|
||
|
window.open(appearNote.url || appearNote.uri, '_blank');
|
||
|
},
|
||
|
} : undefined,
|
||
|
- {
|
||
|
- icon: 'fas fa-share-alt',
|
||
|
- text: i18n.ts.share,
|
||
|
- action: share,
|
||
|
- },
|
||
|
instance.translatorAvailable ? {
|
||
|
icon: 'fas fa-language',
|
||
|
text: i18n.ts.translate,
|