diff options
| author | Henry Jameson <me@hjkos.com> | 2018-08-31 17:00:41 +0300 |
|---|---|---|
| committer | Henry Jameson <me@hjkos.com> | 2018-08-31 17:00:41 +0300 |
| commit | 17f30190e0781f526f7fcacd8422f1c472b7dc79 (patch) | |
| tree | 4cbba43cf12507bd479fd990fb31a0aef467aae6 /src/components/post_status_form | |
| parent | 33b13d3775c2eca44e0319b79565d4b1aaeaf3f2 (diff) | |
Made showing format selection optional and default to false
Diffstat (limited to 'src/components/post_status_form')
| -rw-r--r-- | src/components/post_status_form/post_status_form.js | 3 | ||||
| -rw-r--r-- | src/components/post_status_form/post_status_form.vue | 2 |
2 files changed, 4 insertions, 1 deletions
diff --git a/src/components/post_status_form/post_status_form.js b/src/components/post_status_form/post_status_form.js index 7d2735c5..d7f1ffb2 100644 --- a/src/components/post_status_form/post_status_form.js +++ b/src/components/post_status_form/post_status_form.js @@ -139,6 +139,9 @@ const PostStatusForm = { }, scopeOptionsEnabled () { return this.$store.state.config.scopeOptionsEnabled + }, + formattingOptionsEnabled () { + return this.$store.state.config.formattingOptionsEnabled } }, methods: { diff --git a/src/components/post_status_form/post_status_form.vue b/src/components/post_status_form/post_status_form.vue index 543ab527..559ad016 100644 --- a/src/components/post_status_form/post_status_form.vue +++ b/src/components/post_status_form/post_status_form.vue @@ -33,7 +33,7 @@ @paste="paste"> </textarea> <div class="visibility-tray"> - <span class="text-format"> + <span class="text-format" v-if="formattingOptionsEnabled"> <label for="post-content-type" class="select"> <select id="post-content-type" v-model="newStatus.contentType" class="form-control"> <option value="text/plain">{{$t('post_status.content_type.plain_text')}}</option> |
