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

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

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

Loading…
Cancel
Save