|
|
@ -163,6 +163,9 @@ function sharedViewUrl() { |
|
|
|
case ViewTypes.MAP: |
|
|
|
case ViewTypes.MAP: |
|
|
|
viewType = 'map' |
|
|
|
viewType = 'map' |
|
|
|
break |
|
|
|
break |
|
|
|
|
|
|
|
case ViewTypes.CALENDAR: |
|
|
|
|
|
|
|
viewType = 'calendar' |
|
|
|
|
|
|
|
break |
|
|
|
default: |
|
|
|
default: |
|
|
|
viewType = 'view' |
|
|
|
viewType = 'view' |
|
|
|
} |
|
|
|
} |
|
|
@ -280,11 +283,11 @@ const isPublicShared = computed(() => { |
|
|
|
<div class="text-gray-900 font-medium">{{ $t('activity.enabledPublicViewing') }}</div> |
|
|
|
<div class="text-gray-900 font-medium">{{ $t('activity.enabledPublicViewing') }}</div> |
|
|
|
<a-switch |
|
|
|
<a-switch |
|
|
|
v-e="['c:share:view:enable:toggle']" |
|
|
|
v-e="['c:share:view:enable:toggle']" |
|
|
|
data-testid="share-view-toggle" |
|
|
|
|
|
|
|
:checked="isPublicShared" |
|
|
|
:checked="isPublicShared" |
|
|
|
|
|
|
|
:disabled="isLocked" |
|
|
|
:loading="isUpdating.public" |
|
|
|
:loading="isUpdating.public" |
|
|
|
class="share-view-toggle !mt-0.25" |
|
|
|
class="share-view-toggle !mt-0.25" |
|
|
|
:disabled="isLocked" |
|
|
|
data-testid="share-view-toggle" |
|
|
|
@click="toggleShare" |
|
|
|
@click="toggleShare" |
|
|
|
/> |
|
|
|
/> |
|
|
|
</div> |
|
|
|
</div> |
|
|
@ -297,22 +300,22 @@ const isPublicShared = computed(() => { |
|
|
|
<div class="flex text-black">{{ $t('activity.restrictAccessWithPassword') }}</div> |
|
|
|
<div class="flex text-black">{{ $t('activity.restrictAccessWithPassword') }}</div> |
|
|
|
<a-switch |
|
|
|
<a-switch |
|
|
|
v-e="['c:share:view:password:toggle']" |
|
|
|
v-e="['c:share:view:password:toggle']" |
|
|
|
data-testid="share-password-toggle" |
|
|
|
|
|
|
|
:checked="passwordProtected" |
|
|
|
:checked="passwordProtected" |
|
|
|
:loading="isUpdating.password" |
|
|
|
:loading="isUpdating.password" |
|
|
|
class="share-password-toggle !mt-0.25" |
|
|
|
class="share-password-toggle !mt-0.25" |
|
|
|
|
|
|
|
data-testid="share-password-toggle" |
|
|
|
@click="togglePasswordProtected" |
|
|
|
@click="togglePasswordProtected" |
|
|
|
/> |
|
|
|
/> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<Transition name="layout" mode="out-in"> |
|
|
|
<Transition mode="out-in" name="layout"> |
|
|
|
<div v-if="passwordProtected" class="flex gap-2 mt-2 w-2/3"> |
|
|
|
<div v-if="passwordProtected" class="flex gap-2 mt-2 w-2/3"> |
|
|
|
<a-input-password |
|
|
|
<a-input-password |
|
|
|
v-model:value="password" |
|
|
|
v-model:value="password" |
|
|
|
data-testid="nc-modal-share-view__password" |
|
|
|
:placeholder="$t('placeholder.password.enter')" |
|
|
|
class="!rounded-lg !py-1 !bg-white" |
|
|
|
class="!rounded-lg !py-1 !bg-white" |
|
|
|
|
|
|
|
data-testid="nc-modal-share-view__password" |
|
|
|
size="small" |
|
|
|
size="small" |
|
|
|
type="password" |
|
|
|
type="password" |
|
|
|
:placeholder="$t('placeholder.password.enter')" |
|
|
|
|
|
|
|
/> |
|
|
|
/> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</Transition> |
|
|
|
</Transition> |
|
|
@ -332,9 +335,9 @@ const isPublicShared = computed(() => { |
|
|
|
<a-switch |
|
|
|
<a-switch |
|
|
|
v-model:checked="allowCSVDownload" |
|
|
|
v-model:checked="allowCSVDownload" |
|
|
|
v-e="['c:share:view:allow-csv-download:toggle']" |
|
|
|
v-e="['c:share:view:allow-csv-download:toggle']" |
|
|
|
data-testid="share-download-toggle" |
|
|
|
|
|
|
|
:loading="isUpdating.download" |
|
|
|
:loading="isUpdating.download" |
|
|
|
class="public-password-toggle !mt-0.25" |
|
|
|
class="public-password-toggle !mt-0.25" |
|
|
|
|
|
|
|
data-testid="share-download-toggle" |
|
|
|
/> |
|
|
|
/> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
@ -361,23 +364,23 @@ const isPublicShared = computed(() => { |
|
|
|
<div class="text-black">{{ $t('activity.useTheme') }}</div> |
|
|
|
<div class="text-black">{{ $t('activity.useTheme') }}</div> |
|
|
|
<a-switch |
|
|
|
<a-switch |
|
|
|
v-e="['c:share:view:theme:toggle']" |
|
|
|
v-e="['c:share:view:theme:toggle']" |
|
|
|
data-testid="share-theme-toggle" |
|
|
|
|
|
|
|
:checked="viewTheme" |
|
|
|
:checked="viewTheme" |
|
|
|
:loading="isUpdating.password" |
|
|
|
:loading="isUpdating.password" |
|
|
|
class="share-theme-toggle !mt-0.25" |
|
|
|
class="share-theme-toggle !mt-0.25" |
|
|
|
|
|
|
|
data-testid="share-theme-toggle" |
|
|
|
@click="viewTheme = !viewTheme" |
|
|
|
@click="viewTheme = !viewTheme" |
|
|
|
/> |
|
|
|
/> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
<Transition name="layout" mode="out-in"> |
|
|
|
<Transition mode="out-in" name="layout"> |
|
|
|
<div v-if="viewTheme" class="flex -ml-1"> |
|
|
|
<div v-if="viewTheme" class="flex -ml-1"> |
|
|
|
<LazyGeneralColorPicker |
|
|
|
<LazyGeneralColorPicker |
|
|
|
data-testid="nc-modal-share-view__theme-picker" |
|
|
|
:advanced="false" |
|
|
|
class="!p-0 !bg-inherit" |
|
|
|
|
|
|
|
:model-value="activeView?.meta?.theme?.primaryColor" |
|
|
|
|
|
|
|
:colors="baseThemeColors" |
|
|
|
:colors="baseThemeColors" |
|
|
|
|
|
|
|
:model-value="activeView?.meta?.theme?.primaryColor" |
|
|
|
:row-size="9" |
|
|
|
:row-size="9" |
|
|
|
:advanced="false" |
|
|
|
class="!p-0 !bg-inherit" |
|
|
|
|
|
|
|
data-testid="nc-modal-share-view__theme-picker" |
|
|
|
@input="onChangeTheme" |
|
|
|
@input="onChangeTheme" |
|
|
|
/> |
|
|
|
/> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|