aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorShpuld Shpludson <shp@cock.li>2019-07-05 13:22:04 +0000
committerShpuld Shpludson <shp@cock.li>2019-07-05 13:22:04 +0000
commit4f0ba97be9022d3439893637e3250a76148bc6fd (patch)
treef86a42fc9076ece963018b71b7ede83f8ef18cdb /src
parent6bea363b9db1c372e0e3add4458ff4c819b7c500 (diff)
parent6c6aa8446db6f6bab3240e96f82492e527ba4443 (diff)
Merge branch '603' into 'develop'
Hide text format when only plaintext is available Closes #603 See merge request pleroma/pleroma-fe!867
Diffstat (limited to 'src')
-rw-r--r--src/components/post_status_form/post_status_form.vue19
1 files changed, 9 insertions, 10 deletions
diff --git a/src/components/post_status_form/post_status_form.vue b/src/components/post_status_form/post_status_form.vue
index 67cdc721..52d1b43c 100644
--- a/src/components/post_status_form/post_status_form.vue
+++ b/src/components/post_status_form/post_status_form.vue
@@ -74,6 +74,13 @@
</p>
</EmojiInput>
<div class="visibility-tray">
+ <scope-selector
+ :showAll="showAllScopes"
+ :userDefault="userDefaultScope"
+ :originalScope="copyMessageScope"
+ :initialScope="newStatus.visibility"
+ :onScopeChange="changeVis"/>
+
<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">
@@ -84,18 +91,11 @@
<i class="icon-down-open"></i>
</label>
</div>
- <div class="text-format" v-if="postFormats.length === 1">
+ <div class="text-format" v-if="postFormats.length === 1 && postFormats[0] !== 'text/plain'">
<span class="only-format">
{{$t(`post_status.content_type["${postFormats[0]}"]`)}}
</span>
</div>
-
- <scope-selector
- :showAll="showAllScopes"
- :userDefault="userDefaultScope"
- :originalScope="copyMessageScope"
- :initialScope="newStatus.visibility"
- :onScopeChange="changeVis"/>
</div>
</div>
<poll-form
@@ -170,7 +170,6 @@
.visibility-tray {
display: flex;
justify-content: space-between;
- flex-direction: row-reverse;
padding-top: 5px;
}
}
@@ -217,7 +216,7 @@
.icon-chart-bar {
cursor: pointer;
}
-
+
.error {
text-align: center;