Skip to content
This repository has been archived by the owner on Nov 22, 2022. It is now read-only.

Commit

Permalink
Fix admin compose settings not reflected in compose
Browse files Browse the repository at this point in the history
  • Loading branch information
Mario Burazer committed Oct 14, 2021
1 parent d34c685 commit bf9e706
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/ModuleFields/Editor/File.vue
Expand Up @@ -74,14 +74,14 @@ export default {
mimetypes () {
const a = (this.field.options.mimetypes || '').trim()
if (!a) {
return ['*/*']
return this.$s('compose.Record.Attachments.Mimetypes', ['*/*'])
}
return a.split(',').map(p => p.trim())
},
maxSize () {
return this.field.options.maxSize || 100
return this.field.options.maxSize || this.$s('compose.Record.Attachments.MaxSize', 100)
},
set: {
Expand Down
2 changes: 2 additions & 0 deletions src/components/PageBlocks/FileConfigurator.vue
Expand Up @@ -23,6 +23,8 @@
</b-form-checkbox>
<uploader
:endpoint="endpoint"
:max-filesize="$s('compose.Page.Attachments.MaxSize', 100)"
:accepted-files="$s('compose.Page.Attachments.Mimetypes', ['*/*'])"
@uploaded="appendAttachment"
/>
<list-loader
Expand Down

0 comments on commit bf9e706

Please sign in to comment.