Removed formattingOptionsEnabled in favor of relying on BE-provided list of
accepted formatting options
This commit is contained in:
parent
1db3c785d8
commit
e3638af031
7 changed files with 18 additions and 8 deletions
|
@ -174,9 +174,6 @@ const PostStatusForm = {
|
|||
return true
|
||||
}
|
||||
},
|
||||
formattingOptionsEnabled () {
|
||||
return this.$store.state.instance.formattingOptionsEnabled
|
||||
},
|
||||
postFormats () {
|
||||
return this.$store.state.instance.postFormats || []
|
||||
},
|
||||
|
|
|
@ -58,7 +58,7 @@
|
|||
>
|
||||
</textarea>
|
||||
<div class="visibility-tray">
|
||||
<div class="text-format" v-if="formattingOptionsEnabled">
|
||||
<div class="text-format" v-if="postFormats.length > 1">
|
||||
<label for="post-content-type" class="select">
|
||||
<select id="post-content-type" v-model="newStatus.contentType" class="form-control">
|
||||
<option v-for="postFormat in postFormats" :key="postFormat" :value="postFormat">
|
||||
|
@ -68,6 +68,11 @@
|
|||
<i class="icon-down-open"></i>
|
||||
</label>
|
||||
</div>
|
||||
<div class="text-format" v-if="postFormats.length === 1">
|
||||
<span class="only-format">
|
||||
{{$t(`post_status.content_type["${postFormats[0]}"]`)}}
|
||||
</span>
|
||||
</div>
|
||||
|
||||
<scope-selector
|
||||
:showAll="showAllScopes"
|
||||
|
@ -173,6 +178,14 @@
|
|||
}
|
||||
}
|
||||
|
||||
.text-format {
|
||||
.only-format {
|
||||
color: $fallback--faint;
|
||||
color: var(--faint, $fallback--faint);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
.error {
|
||||
text-align: center;
|
||||
}
|
||||
|
|
|
@ -102,7 +102,7 @@
|
|||
</label>
|
||||
</div>
|
||||
</li>
|
||||
<li>
|
||||
<li v-if="postFormats.length > 0">
|
||||
<div>
|
||||
{{$t('settings.post_status_content_type')}}
|
||||
<label for="postContentType" class="select">
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue