aboutsummaryrefslogtreecommitdiff
path: root/src/components/post_status_form
diff options
context:
space:
mode:
authorHJ <30-hj@users.noreply.git.pleroma.social>2019-06-17 20:17:58 +0000
committerHJ <30-hj@users.noreply.git.pleroma.social>2019-06-17 20:17:58 +0000
commitac46de3972851e12373f690d3ef70f31cc7db1ef (patch)
treeeda83032a5d3824d1a8d8cffcfa3834ad9c17460 /src/components/post_status_form
parent8d2e63a8e4b51deb7efb1d4fbbd5e20dfb924e73 (diff)
parent22a33512087710e9ca6c898c2c8b4592ac73e32d (diff)
Merge branch 'mastoapi-login-and-config-fixes' into 'develop'
Mastoapi login and config fixes See merge request pleroma/pleroma-fe!833
Diffstat (limited to 'src/components/post_status_form')
-rw-r--r--src/components/post_status_form/post_status_form.js3
-rw-r--r--src/components/post_status_form/post_status_form.vue15
2 files changed, 14 insertions, 4 deletions
diff --git a/src/components/post_status_form/post_status_form.js b/src/components/post_status_form/post_status_form.js
index cbd2024a..a2dbf736 100644
--- a/src/components/post_status_form/post_status_form.js
+++ b/src/components/post_status_form/post_status_form.js
@@ -174,9 +174,6 @@ const PostStatusForm = {
return true
}
},
- formattingOptionsEnabled () {
- return this.$store.state.instance.formattingOptionsEnabled
- },
postFormats () {
return this.$store.state.instance.postFormats || []
},
diff --git a/src/components/post_status_form/post_status_form.vue b/src/components/post_status_form/post_status_form.vue
index 25c5284f..08ecd576 100644
--- a/src/components/post_status_form/post_status_form.vue
+++ b/src/components/post_status_form/post_status_form.vue
@@ -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;
}