Skip to content

Commit 16e2c24

Browse files
authored
Allow disabling email section (#95)
* Allow disabling email section * bump version
1 parent 32bd09f commit 16e2c24

File tree

3 files changed

+7
-5
lines changed

3 files changed

+7
-5
lines changed

packages/dashboard/src/components/main/LeftSidebar.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
</q-btn>
4545

4646
<q-btn class="q-mb-sm" @click="gotoFiles" color="blue" icon="folder_copy" label="Files" stack />
47-
<q-btn class="q-mb-sm" @click="gotoEmail" color="blue" icon="email" label="Email" stack />
47+
<q-btn v-if="mainStore.config && mainStore.config.emailRouting !== false" class="q-mb-sm" @click="gotoEmail" color="blue" icon="email" label="Email" stack />
4848

4949
<q-btn class="q-mb-sm q-mt-auto q-mb-0" @click="infoPopup=true" color="secondary" icon="question_mark"
5050
label="Info"

packages/worker/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "r2-explorer",
3-
"version": "1.1.7",
3+
"version": "1.1.8",
44
"description": "A Google Drive Interface for your Cloudflare R2 Buckets",
55
"main": "./dist/index.js",
66
"module": "./dist/index.mjs",

packages/worker/src/types.d.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,11 @@ export type R2ExplorerConfig = {
1111
cors?: boolean;
1212
cfAccessTeamName?: string;
1313
dashboardUrl?: string;
14-
emailRouting?: {
15-
targetBucket: string;
16-
};
14+
emailRouting?:
15+
| {
16+
targetBucket: string;
17+
}
18+
| false;
1719
showHiddenFiles?: boolean;
1820
basicAuth?: BasicAuth | BasicAuth[];
1921
};

0 commit comments

Comments
 (0)