fix: typo in "twitter link" and "invite to hoppscotch" action (#3346)
This commit is contained in:
@@ -80,10 +80,11 @@ const props = defineProps<{
|
|||||||
active: boolean
|
active: boolean
|
||||||
}>()
|
}>()
|
||||||
|
|
||||||
const formattedShortcutKeys = computed(() =>
|
const formattedShortcutKeys = computed(
|
||||||
props.entry.meta?.keyboardShortcut?.map((key) => {
|
() =>
|
||||||
return SPECIAL_KEY_CHARS[key] ?? capitalize(key)
|
props.entry.meta?.keyboardShortcut?.map((key) => {
|
||||||
})
|
return SPECIAL_KEY_CHARS[key] ?? capitalize(key)
|
||||||
|
})
|
||||||
)
|
)
|
||||||
|
|
||||||
const emit = defineEmits<{
|
const emit = defineEmits<{
|
||||||
|
|||||||
@@ -72,7 +72,7 @@ export const twitter: HoppSupportOptionsMenuItem = {
|
|||||||
icon: IconTwitter,
|
icon: IconTwitter,
|
||||||
action: {
|
action: {
|
||||||
type: "link",
|
type: "link",
|
||||||
href: "https://hoppscotch.io/discord",
|
href: "https://hoppscotch.io/twitter",
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -84,17 +84,7 @@ export const invite: HoppSupportOptionsMenuItem = {
|
|||||||
action: {
|
action: {
|
||||||
type: "custom",
|
type: "custom",
|
||||||
do() {
|
do() {
|
||||||
if (navigator.share) {
|
invokeAction("modals.share.toggle")
|
||||||
navigator
|
|
||||||
.share({
|
|
||||||
title: "Hoppscotch",
|
|
||||||
text: "Hoppscotch • Open source API development ecosystem - Helps you create requests faster, saving precious time on development.",
|
|
||||||
url: "https://hoppscotch.io",
|
|
||||||
})
|
|
||||||
.catch(console.error)
|
|
||||||
} else {
|
|
||||||
// fallback
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user