Browse Source

fix: Added tooltip for open in new tab and copy iframe btn in share modal

pull/6919/head
Muhammed Mustafa 1 year ago
parent
commit
7e35eedae9
  1. 11
      packages/nc-gui/components/general/CopyUrl.vue
  2. 2
      packages/nc-gui/lang/en.json

11
packages/nc-gui/components/general/CopyUrl.vue

@ -40,9 +40,19 @@ const copyUrl = async () => {
<div class="overflow-hidden whitespace-nowrap text-gray-500">{{ url }}</div> <div class="overflow-hidden whitespace-nowrap text-gray-500">{{ url }}</div>
</div> </div>
<div class="flex flex-row gap-x-1"> <div class="flex flex-row gap-x-1">
<NcTooltip>
<template #title>
{{ $t('activity.openInANewTab') }}
</template>
<div class="button" @click="openUrl"> <div class="button" @click="openUrl">
<RiExternalLinkLine class="h-3.75" /> <RiExternalLinkLine class="h-3.75" />
</div> </div>
</NcTooltip>
<NcTooltip>
<template #title>
{{ $t('activity.copyIFrameCode') }}
</template>
<div <div
class="button" class="button"
:class="{ :class="{
@ -52,6 +62,7 @@ const copyUrl = async () => {
> >
<MdiCodeTags class="h-4" /> <MdiCodeTags class="h-4" />
</div> </div>
</NcTooltip>
<div class="button" data-testid="docs-share-page-copy-link" @click="copyUrl"> <div class="button" data-testid="docs-share-page-copy-link" @click="copyUrl">
<MdiCheck v-if="isCopied.link" class="h-3.5" /> <MdiCheck v-if="isCopied.link" class="h-3.5" />
<MdiContentCopy v-else class="h-3.5" /> <MdiContentCopy v-else class="h-3.5" />

2
packages/nc-gui/lang/en.json

@ -620,6 +620,8 @@
"newFormLoaded": "New form will be loaded after" "newFormLoaded": "New form will be loaded after"
}, },
"activity": { "activity": {
"openInANewTab": "Open in a new tab",
"copyIFrameCode": "Copy IFrame code",
"onCondition": "On Condition", "onCondition": "On Condition",
"bulkDownload": "Bulk Download", "bulkDownload": "Bulk Download",
"attachFile": "Attach File", "attachFile": "Attach File",

Loading…
Cancel
Save