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>
<div class="flex flex-row gap-x-1">
<NcTooltip>
<template #title>
{{ $t('activity.openInANewTab') }}
</template>
<div class="button" @click="openUrl">
<RiExternalLinkLine class="h-3.75" />
</div>
</NcTooltip>
<NcTooltip>
<template #title>
{{ $t('activity.copyIFrameCode') }}
</template>
<div
class="button"
:class="{
@ -52,6 +62,7 @@ const copyUrl = async () => {
>
<MdiCodeTags class="h-4" />
</div>
</NcTooltip>
<div class="button" data-testid="docs-share-page-copy-link" @click="copyUrl">
<MdiCheck v-if="isCopied.link" 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"
},
"activity": {
"openInANewTab": "Open in a new tab",
"copyIFrameCode": "Copy IFrame code",
"onCondition": "On Condition",
"bulkDownload": "Bulk Download",
"attachFile": "Attach File",

Loading…
Cancel
Save