diff --git a/packages/nc-gui/components/project/spreadsheet/components/SpreadsheetNavDrawer.vue b/packages/nc-gui/components/project/spreadsheet/components/SpreadsheetNavDrawer.vue
index 9e7a849928..dcc277d79b 100644
--- a/packages/nc-gui/components/project/spreadsheet/components/SpreadsheetNavDrawer.vue
+++ b/packages/nc-gui/components/project/spreadsheet/components/SpreadsheetNavDrawer.vue
@@ -388,59 +388,71 @@
-
-
-
-
- {{ $t("msg.info.beforeEnablePwd") }}
-
-
-
- {{ $t("msg.info.afterEnablePwd") }}
-
-
-
-
-
-
-
-
+
+
+
+ More Options
+ mdi-chevron-{{ advanceOptionsPanel === 0 ? 'up' : 'down' }}
+
+
+
+
+
- {{ showShareLinkPassword ? "visibility_off" : "visibility" }}
-
-
-
-
-
- {{ $t("placeholder.password.save") }}
-
-
+
+
+
+ {{ showShareLinkPassword ? "visibility_off" : "visibility" }}
+
+
+
+
+
+ {{ $t("placeholder.password.save") }}
+
+
+
+
+
+
@@ -497,6 +509,7 @@ export default {
queryParams: Object
},
data: () => ({
+ advanceOptionsPanel: false,
webhookSliderModal: false,
codeSnippetModal: false,
drag: false,
@@ -512,6 +525,7 @@ export default {
searchQueryVal: '',
showShareLinkPassword: false,
passwordProtect: false,
+ allowDownload: true,
sharedViewPassword: '',
overAdvShieldIcon: false,
overShieldIcon: false,
@@ -525,7 +539,7 @@ export default {
[ViewTypes.GRID]: 'grid',
[ViewTypes.FORM]: 'form',
[ViewTypes.GALLERY]: 'gallery'
- }
+ },
}),
computed: {
isSharedBase() {
@@ -710,6 +724,9 @@ export default {
this.saveShareLinkPassword()
}
},
+ onAllowDownloadChange() {
+ this.saveAllowDownload()
+ },
async saveShareLinkPassword() {
try {
await this.$api.dbViewShare.update(this.shareLink.id, {
@@ -733,6 +750,23 @@ export default {
this.$e('a:view:share:enable-pwd')
},
+ async saveAllowDownload() {
+ try {
+ await this.$api.dbViewShare.update(this.shareLink.id, {
+ download: this.allowDownload
+ })
+ this.$toast.success('Successfully updated').goAway(3000)
+ } catch (e) {
+ this.$toast
+ .error(await this._extractSdkResponseErrorMsg(e))
+ .goAway(3000)
+ }
+ if (this.allowDownload) {
+ this.$e('a:view:share:enable-download')
+ } else {
+ this.$e('a:view:share:disable-download')
+ }
+ },
async loadViews() {
// this.viewsList = await this.sqlOp(
// {
@@ -1012,4 +1046,7 @@ export default {
opacity: 0.5;
background: grey;
}
+.mx-auto .v-expansion-panel{
+ background: var(--v-backgroundColor-base)
+}