|
|
@ -174,67 +174,68 @@ const onDelete = async () => { |
|
|
|
<NcDivider /> |
|
|
|
<NcDivider /> |
|
|
|
</template> |
|
|
|
</template> |
|
|
|
|
|
|
|
|
|
|
|
<template v-if="isUIAllowed('csvTableImport') && !isPublicView"> |
|
|
|
<template v-if="view.type !== ViewTypes.FORM"> |
|
|
|
<NcSubMenu key="upload"> |
|
|
|
<template v-if="isUIAllowed('csvTableImport') && !isPublicView"> |
|
|
|
|
|
|
|
<NcSubMenu key="upload"> |
|
|
|
|
|
|
|
<template #title> |
|
|
|
|
|
|
|
<div |
|
|
|
|
|
|
|
v-e="[ |
|
|
|
|
|
|
|
'c:navdraw:preview-as', |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
sidebar: props.inSidebar, |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
]" |
|
|
|
|
|
|
|
class="nc-base-menu-item group" |
|
|
|
|
|
|
|
> |
|
|
|
|
|
|
|
<UploadIcon class="w-4 h-4" /> |
|
|
|
|
|
|
|
{{ $t('general.upload') }} |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
</template> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<template #expandIcon></template> |
|
|
|
|
|
|
|
<div class="flex py-3 px-4 font-bold uppercase text-xs text-gray-500">{{ $t('activity.uploadData') }}</div> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<template v-for="(dialog, type) in quickImportDialogs"> |
|
|
|
|
|
|
|
<NcMenuItem v-if="isUIAllowed(`${type}TableImport`) && !isPublicView" :key="type" @click="onImportClick(dialog)"> |
|
|
|
|
|
|
|
<div |
|
|
|
|
|
|
|
v-e="[ |
|
|
|
|
|
|
|
`a:upload:${type}`, |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
sidebar: props.inSidebar, |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
]" |
|
|
|
|
|
|
|
class="nc-base-menu-item" |
|
|
|
|
|
|
|
:class="{ disabled: isLocked }" |
|
|
|
|
|
|
|
> |
|
|
|
|
|
|
|
<component :is="iconMap.upload" /> |
|
|
|
|
|
|
|
{{ `${$t('general.upload')} ${type.toUpperCase()}` }} |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
</NcMenuItem> |
|
|
|
|
|
|
|
</template> |
|
|
|
|
|
|
|
</NcSubMenu> |
|
|
|
|
|
|
|
</template> |
|
|
|
|
|
|
|
<NcSubMenu key="download"> |
|
|
|
<template #title> |
|
|
|
<template #title> |
|
|
|
<div |
|
|
|
<div |
|
|
|
v-e="[ |
|
|
|
v-e="[ |
|
|
|
'c:navdraw:preview-as', |
|
|
|
'c:download', |
|
|
|
{ |
|
|
|
{ |
|
|
|
sidebar: props.inSidebar, |
|
|
|
sidebar: props.inSidebar, |
|
|
|
}, |
|
|
|
}, |
|
|
|
]" |
|
|
|
]" |
|
|
|
class="nc-base-menu-item group" |
|
|
|
class="nc-base-menu-item group nc-view-context-download-option" |
|
|
|
> |
|
|
|
> |
|
|
|
<UploadIcon class="w-4 h-4" /> |
|
|
|
<DownloadIcon class="w-4 h-4" /> |
|
|
|
{{ $t('general.upload') }} |
|
|
|
{{ $t('general.download') }} |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</template> |
|
|
|
</template> |
|
|
|
|
|
|
|
|
|
|
|
<template #expandIcon></template> |
|
|
|
<template #expandIcon></template> |
|
|
|
<div class="flex py-3 px-4 font-bold uppercase text-xs text-gray-500">{{ $t('activity.uploadData') }}</div> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<template v-for="(dialog, type) in quickImportDialogs"> |
|
|
|
<LazySmartsheetToolbarExportSubActions /> |
|
|
|
<NcMenuItem v-if="isUIAllowed(`${type}TableImport`) && !isPublicView" :key="type" @click="onImportClick(dialog)"> |
|
|
|
|
|
|
|
<div |
|
|
|
|
|
|
|
v-e="[ |
|
|
|
|
|
|
|
`a:upload:${type}`, |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
sidebar: props.inSidebar, |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
]" |
|
|
|
|
|
|
|
class="nc-base-menu-item" |
|
|
|
|
|
|
|
:class="{ disabled: isLocked }" |
|
|
|
|
|
|
|
> |
|
|
|
|
|
|
|
<component :is="iconMap.upload" /> |
|
|
|
|
|
|
|
{{ `${$t('general.upload')} ${type.toUpperCase()}` }} |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
</NcMenuItem> |
|
|
|
|
|
|
|
</template> |
|
|
|
|
|
|
|
</NcSubMenu> |
|
|
|
</NcSubMenu> |
|
|
|
|
|
|
|
<NcDivider /> |
|
|
|
</template> |
|
|
|
</template> |
|
|
|
<NcSubMenu key="download"> |
|
|
|
|
|
|
|
<template #title> |
|
|
|
|
|
|
|
<div |
|
|
|
|
|
|
|
v-e="[ |
|
|
|
|
|
|
|
'c:download', |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
sidebar: props.inSidebar, |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
]" |
|
|
|
|
|
|
|
class="nc-base-menu-item group nc-view-context-download-option" |
|
|
|
|
|
|
|
> |
|
|
|
|
|
|
|
<DownloadIcon class="w-4 h-4" /> |
|
|
|
|
|
|
|
{{ $t('general.download') }} |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
</template> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<template #expandIcon></template> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<LazySmartsheetToolbarExportSubActions /> |
|
|
|
|
|
|
|
</NcSubMenu> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<NcDivider /> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<NcSubMenu v-if="isUIAllowed('viewCreateOrEdit')" key="lock-type" class="scrollbar-thin-dull max-h-90vh overflow-auto !py-0"> |
|
|
|
<NcSubMenu v-if="isUIAllowed('viewCreateOrEdit')" key="lock-type" class="scrollbar-thin-dull max-h-90vh overflow-auto !py-0"> |
|
|
|
<template #title> |
|
|
|
<template #title> |
|
|
|