Browse Source

fic(nc-gui): add tooltip on disabled get prefilled link btn

pull/7786/head
Ramesh Mane 10 months ago
parent
commit
865b7cebea
  1. 26
      packages/nc-gui/components/smartsheet/Form.vue
  2. 3
      packages/nc-gui/lang/en.json

26
packages/nc-gui/components/smartsheet/Form.vue

@ -1332,17 +1332,21 @@ useEventListener(
{{ $t('activity.clearForm') }}
</NcButton>
<div class="flex items-center gap-3">
<NcButton
type="primary"
size="small"
:disabled="!isUIAllowed('dataInsert') || !visibleColumns.length || isLocked || !view?.uuid"
class="nc-form-get-pre-filled-link nc-form-focus-element"
data-testid="nc-form-get-pre-filled-link"
data-title="nc-form-get-pre-filled-link"
@click="getPreFilledLink"
>
{{ $t('activity.getPreFilledLink') }}
</NcButton>
<NcTooltip :disabled="!!view?.uuid">
<template #title>{{$t('tooltip.formIsNotShared')}}</template>
<NcButton
v-if="isUIAllowed('dataInsert') && visibleColumns.length"
type="primary"
size="small"
:disabled="!isUIAllowed('dataInsert') || !visibleColumns.length || isLocked || !view?.uuid"
class="nc-form-get-pre-filled-link nc-form-focus-element"
data-testid="nc-form-get-pre-filled-link"
data-title="nc-form-get-pre-filled-link"
@click="getPreFilledLink"
>
{{ $t('activity.getPreFilledLink') }}
</NcButton>
</NcTooltip>
<NcButton
html-type="submit"
type="primary"

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

@ -965,7 +965,8 @@
"clearMetadata": "Clear all metadata from meta tables.",
"clientKey": "Select .key file",
"clientCert": "Select .cert file",
"clientCA": "Select CA file"
"clientCA": "Select CA file",
"formIsNotShared": "Form is not shared"
},
"placeholder": {
"selectSlackChannels": "Select Slack channels",

Loading…
Cancel
Save