diff options
| author | Henry Jameson <me@hjkos.com> | 2023-04-24 21:57:31 +0300 |
|---|---|---|
| committer | Henry Jameson <me@hjkos.com> | 2023-04-24 21:57:31 +0300 |
| commit | e0fbeee88edb29f04a3260560d10d1a812f84029 (patch) | |
| tree | 3fb8efa42796ba19399da747f197503ff7c3488e /src/components/settings_modal/helpers/attachment_setting.js | |
| parent | 9aaa8a86f52bc97838c768a8859919a3ad6fd54f (diff) | |
finish up attachment setting (right now only for admin section only)
Diffstat (limited to 'src/components/settings_modal/helpers/attachment_setting.js')
| -rw-r--r-- | src/components/settings_modal/helpers/attachment_setting.js | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/components/settings_modal/helpers/attachment_setting.js b/src/components/settings_modal/helpers/attachment_setting.js index a0a12ead..ac5c6f86 100644 --- a/src/components/settings_modal/helpers/attachment_setting.js +++ b/src/components/settings_modal/helpers/attachment_setting.js @@ -7,10 +7,10 @@ export default { ...Setting, props: { ...Setting.props, - type: { - type: Array, + acceptTypes: { + type: String, required: false, - default: [] + default: 'image/*' } }, components: { @@ -22,6 +22,7 @@ export default { ...Setting.computed, attachment () { const path = this.realDraftMode ? this.draft : this.state + // The "server" part is primarily for local dev, but could be useful for alt-domain or multiuser usage. const url = path.includes('://') ? path : this.$store.state.instance.server + path return { mimetype: fileTypeExt(url), |
