restructure settings definitions
This commit is contained in:
parent
694a1f0103
commit
a461068e40
9 changed files with 432 additions and 139 deletions
|
|
@ -15,7 +15,7 @@ const FeaturesPanel = {
|
|||
'mediaProxyAvailable',
|
||||
]),
|
||||
...mapState(useInstanceStore, {
|
||||
textlimit: (store) => store.limits.textlimit,
|
||||
textLimit: (store) => store.limits.textLimit,
|
||||
uploadlimit: (store) =>
|
||||
fileSizeFormatService.fileSizeFormat(store.limits.uploadlimit),
|
||||
}),
|
||||
|
|
|
|||
|
|
@ -24,7 +24,7 @@
|
|||
{{ $t('features_panel.media_proxy') }}
|
||||
</li>
|
||||
<li>{{ $t('features_panel.scope_options') }}</li>
|
||||
<li>{{ $t('features_panel.text_limit') }} = {{ textlimit }}</li>
|
||||
<li>{{ $t('features_panel.text_limit') }} = {{ textLimit }}</li>
|
||||
<li>{{ $t('features_panel.upload_limit') }} = {{ uploadlimit.num }} {{ $t('upload.file_size_units.' + uploadlimit.unit) }}</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -290,7 +290,7 @@ const PostStatusForm = {
|
|||
return this.newStatus.spoilerText.length
|
||||
},
|
||||
statusLengthLimit() {
|
||||
return useInstanceStore().textlimit
|
||||
return useInstanceStore().limits.textLimit
|
||||
},
|
||||
hasStatusLengthLimit() {
|
||||
return this.statusLengthLimit > 0
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue