fixed post formats
This commit is contained in:
parent
6659308ace
commit
5c42661ca7
3 changed files with 4 additions and 2 deletions
|
|
@ -12,6 +12,7 @@ import SharedComputedObject from '../helpers/shared_computed_object.js'
|
||||||
import UnitSetting from '../helpers/unit_setting.vue'
|
import UnitSetting from '../helpers/unit_setting.vue'
|
||||||
|
|
||||||
import { useInstanceStore } from 'src/stores/instance.js'
|
import { useInstanceStore } from 'src/stores/instance.js'
|
||||||
|
import { useInstanceCapabilitiesStore } from 'src/stores/instance_capabilities.js'
|
||||||
import { useSyncConfigStore } from 'src/stores/sync_config.js'
|
import { useSyncConfigStore } from 'src/stores/sync_config.js'
|
||||||
|
|
||||||
import localeService from 'src/services/locale/locale.service.js'
|
import localeService from 'src/services/locale/locale.service.js'
|
||||||
|
|
@ -104,7 +105,7 @@ const ComposingTab = {
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
postFormats() {
|
postFormats() {
|
||||||
return useInstanceStore().postFormats || []
|
return useInstanceCapabilitiesStore().postFormats
|
||||||
},
|
},
|
||||||
postContentOptions() {
|
postContentOptions() {
|
||||||
return this.postFormats.map((format) => ({
|
return this.postFormats.map((format) => ({
|
||||||
|
|
|
||||||
|
|
@ -29,6 +29,7 @@
|
||||||
id="postContentType"
|
id="postContentType"
|
||||||
path="postContentType"
|
path="postContentType"
|
||||||
:options="postContentOptions"
|
:options="postContentOptions"
|
||||||
|
:local="true"
|
||||||
>
|
>
|
||||||
{{ $t('settings.default_post_status_content_type') }}
|
{{ $t('settings.default_post_status_content_type') }}
|
||||||
</ChoiceSetting>
|
</ChoiceSetting>
|
||||||
|
|
|
||||||
|
|
@ -99,7 +99,6 @@ export const instanceDefaultConfig = {
|
||||||
scopeCopy: true,
|
scopeCopy: true,
|
||||||
subjectLineBehavior: 'email',
|
subjectLineBehavior: 'email',
|
||||||
alwaysShowSubjectInput: true,
|
alwaysShowSubjectInput: true,
|
||||||
postContentType: 'text/plain',
|
|
||||||
minimalScopesMode: false,
|
minimalScopesMode: false,
|
||||||
|
|
||||||
// This hides statuses filtered via a word filter
|
// This hides statuses filtered via a word filter
|
||||||
|
|
@ -168,6 +167,7 @@ export const instanceDefaultConfig = {
|
||||||
export const defaultConfigLocal = {
|
export const defaultConfigLocal = {
|
||||||
hideAttachments: false,
|
hideAttachments: false,
|
||||||
hideAttachmentsInConv: false,
|
hideAttachmentsInConv: false,
|
||||||
|
postContentType: 'text/plain',
|
||||||
sidebarColumnWidth: '25rem',
|
sidebarColumnWidth: '25rem',
|
||||||
contentColumnWidth: '45rem',
|
contentColumnWidth: '45rem',
|
||||||
notifsColumnWidth: '25rem',
|
notifsColumnWidth: '25rem',
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue