|
|
@ -463,7 +463,7 @@ const handleChangeBackground = (color: string) => { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
const openUploadImage = (isUploadBanner: boolean) => { |
|
|
|
const openUploadImage = (isUploadBanner: boolean) => { |
|
|
|
if (!isEditable) return |
|
|
|
if (!isEditable || !isEeUI) return |
|
|
|
|
|
|
|
|
|
|
|
imageCropperData.value.uploadConfig = { |
|
|
|
imageCropperData.value.uploadConfig = { |
|
|
|
path: [NOCO, base.value.id, meta.value?.id, formViewData.value?.id].join('/'), |
|
|
|
path: [NOCO, base.value.id, meta.value?.id, formViewData.value?.id].join('/'), |
|
|
@ -723,11 +723,17 @@ useEventListener( |
|
|
|
<GeneralFormBanner :banner-image-url="formViewData.banner_image_url" /> |
|
|
|
<GeneralFormBanner :banner-image-url="formViewData.banner_image_url" /> |
|
|
|
<div class="absolute bottom-0 right-0 hidden group-hover:block"> |
|
|
|
<div class="absolute bottom-0 right-0 hidden group-hover:block"> |
|
|
|
<div class="flex items-center space-x-1 m-2"> |
|
|
|
<div class="flex items-center space-x-1 m-2"> |
|
|
|
|
|
|
|
<NcTooltip :disabled="isEeUI"> |
|
|
|
|
|
|
|
<template #title> |
|
|
|
|
|
|
|
{{ $t('msg.info.thisFeatureIsOnlyAvailableInEnterpriseEdition') }} |
|
|
|
|
|
|
|
</template> |
|
|
|
|
|
|
|
|
|
|
|
<NcButton |
|
|
|
<NcButton |
|
|
|
type="secondary" |
|
|
|
type="secondary" |
|
|
|
size="small" |
|
|
|
size="small" |
|
|
|
class="nc-form-upload-banner-btn" |
|
|
|
class="nc-form-upload-banner-btn" |
|
|
|
data-testid="nc-form-upload-banner-btn" |
|
|
|
data-testid="nc-form-upload-banner-btn" |
|
|
|
|
|
|
|
:disabled="!isEeUI" |
|
|
|
@click="openUploadImage(true)" |
|
|
|
@click="openUploadImage(true)" |
|
|
|
> |
|
|
|
> |
|
|
|
<div class="flex gap-2 items-center"> |
|
|
|
<div class="flex gap-2 items-center"> |
|
|
@ -738,7 +744,8 @@ useEventListener( |
|
|
|
</span> |
|
|
|
</span> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</NcButton> |
|
|
|
</NcButton> |
|
|
|
<NcTooltip v-if="formViewData.banner_image_url"> |
|
|
|
</NcTooltip> |
|
|
|
|
|
|
|
<NcTooltip v-if="isEeUI && formViewData.banner_image_url"> |
|
|
|
<template #title> {{ $t('general.delete') }} {{ $t('general.banner') }} </template> |
|
|
|
<template #title> {{ $t('general.delete') }} {{ $t('general.banner') }} </template> |
|
|
|
<NcButton |
|
|
|
<NcButton |
|
|
|
type="secondary" |
|
|
|
type="secondary" |
|
|
@ -788,12 +795,17 @@ useEventListener( |
|
|
|
class="items-center space-x-1 flex-nowrap m-3" |
|
|
|
class="items-center space-x-1 flex-nowrap m-3" |
|
|
|
:class="formViewData.logo_url ? 'hidden absolute top-0 left-0 group-hover:flex' : 'flex'" |
|
|
|
:class="formViewData.logo_url ? 'hidden absolute top-0 left-0 group-hover:flex' : 'flex'" |
|
|
|
> |
|
|
|
> |
|
|
|
|
|
|
|
<NcTooltip :disabled="isEeUI"> |
|
|
|
|
|
|
|
<template #title> |
|
|
|
|
|
|
|
{{ $t('msg.info.thisFeatureIsOnlyAvailableInEnterpriseEdition') }} |
|
|
|
|
|
|
|
</template> |
|
|
|
<NcButton |
|
|
|
<NcButton |
|
|
|
v-if="isEditable" |
|
|
|
v-if="isEditable" |
|
|
|
type="secondary" |
|
|
|
type="secondary" |
|
|
|
size="small" |
|
|
|
size="small" |
|
|
|
class="nc-form-upload-logo-btn" |
|
|
|
class="nc-form-upload-logo-btn" |
|
|
|
data-testid="nc-form-upload-log-btn" |
|
|
|
data-testid="nc-form-upload-log-btn" |
|
|
|
|
|
|
|
:disabled="!isEeUI" |
|
|
|
@click="openUploadImage(false)" |
|
|
|
@click="openUploadImage(false)" |
|
|
|
> |
|
|
|
> |
|
|
|
<div class="flex gap-2 items-center"> |
|
|
|
<div class="flex gap-2 items-center"> |
|
|
@ -801,7 +813,8 @@ useEventListener( |
|
|
|
<span> {{ formViewData.logo_url ? $t('general.replace') : $t('general.upload') }} Logo</span> |
|
|
|
<span> {{ formViewData.logo_url ? $t('general.replace') : $t('general.upload') }} Logo</span> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</NcButton> |
|
|
|
</NcButton> |
|
|
|
<NcTooltip v-if="formViewData.logo_url"> |
|
|
|
</NcTooltip> |
|
|
|
|
|
|
|
<NcTooltip v-if="isEeUI && formViewData.logo_url"> |
|
|
|
<template #title> {{ $t('general.delete') }} {{ $t('general.logo') }} </template> |
|
|
|
<template #title> {{ $t('general.delete') }} {{ $t('general.logo') }} </template> |
|
|
|
<NcButton |
|
|
|
<NcButton |
|
|
|
type="secondary" |
|
|
|
type="secondary" |
|
|
@ -1467,12 +1480,12 @@ useEventListener( |
|
|
|
} |
|
|
|
} |
|
|
|
" |
|
|
|
" |
|
|
|
/> |
|
|
|
/> |
|
|
|
<a-tooltip v-else placement="top"> |
|
|
|
<NcTooltip v-else placement="top"> |
|
|
|
<template #title> |
|
|
|
<template #title> |
|
|
|
{{ $t('msg.info.upgradeToEnterpriseEdition', { extraInfo: `to ${$t('labels.hideNocodbBranding')}` }) }} |
|
|
|
{{ $t('msg.info.thisFeatureIsOnlyAvailableInEnterpriseEdition') }} |
|
|
|
</template> |
|
|
|
</template> |
|
|
|
<a-switch :checked="false" size="small" :disabled="true" /> |
|
|
|
<a-switch :checked="false" size="small" :disabled="true" /> |
|
|
|
</a-tooltip> |
|
|
|
</NcTooltip> |
|
|
|
<span class="ml-4">{{ $t('labels.hideNocodbBranding') }}</span> |
|
|
|
<span class="ml-4">{{ $t('labels.hideNocodbBranding') }}</span> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|