Browse Source

fix(nc-gui): remove use theme option from share form modal

pull/7664/head
Ramesh Mane 9 months ago
parent
commit
96f2b88834
  1. 29
      packages/nc-gui/components/dlg/share-and-collaborate/SharePage.vue

29
packages/nc-gui/components/dlg/share-and-collaborate/SharePage.vue

@ -351,7 +351,7 @@ const isPublicShared = computed(() => {
>
</a-switch>
</div>
<div v-if="activeView?.type === ViewTypes.FORM && isEeUI" class="flex flex-row justify-between">
<div v-if="activeView?.type === ViewTypes.FORM && !isEeUI" class="flex flex-row justify-between">
<div class="text-black">{{ $t('activity.rtlOrientation') }}</div>
<a-switch
v-model:checked="withRTL"
@ -360,33 +360,6 @@ const isPublicShared = computed(() => {
>
</a-switch>
</div>
<div v-if="activeView?.type === ViewTypes.FORM" class="flex flex-col justify-between gap-y-1 bg-gray-50 rounded-md">
<div class="flex flex-row justify-between">
<div class="text-black">{{ $t('activity.useTheme') }}</div>
<a-switch
v-e="['c:share:view:theme:toggle']"
:checked="viewTheme"
:loading="isUpdating.password"
class="share-theme-toggle !mt-0.25"
data-testid="share-theme-toggle"
@click="viewTheme = !viewTheme"
/>
</div>
<Transition mode="out-in" name="layout">
<div v-if="viewTheme" class="flex -ml-1">
<LazyGeneralColorPicker
:advanced="false"
:colors="baseThemeColors"
:model-value="activeView?.meta?.theme?.primaryColor"
:row-size="9"
class="!p-0 !bg-inherit"
data-testid="nc-modal-share-view__theme-picker"
@input="onChangeTheme"
/>
</div>
</Transition>
</div>
</div>
</template>
</div>

Loading…
Cancel
Save