From 1e6e006f14970004c2e9cec4f72af8f902187f22 Mon Sep 17 00:00:00 2001 From: Angelina Filippova Date: Fri, 10 Jul 2020 18:03:10 +0300 Subject: [PATCH] Add ability to configure S3 settings --- src/views/settings/components/Upload.vue | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/views/settings/components/Upload.vue b/src/views/settings/components/Upload.vue index 019f9a5f..124de255 100644 --- a/src/views/settings/components/Upload.vue +++ b/src/views/settings/components/Upload.vue @@ -8,6 +8,10 @@ + + + + @@ -62,6 +66,12 @@ export default { loading() { return this.settings.loading }, + s3() { + return this.settings.description.find(setting => setting.key === ':s3') + }, + s3Data() { + return _.get(this.settings.settings, [':ex_aws', ':s3']) || {} + }, showUploadersS3() { const uploader = _.get(this.settings.settings, [':pleroma', 'Pleroma.Upload', ':uploader']) return uploader === 'Pleroma.Uploaders.S3'