diff options
| author | Henry Jameson <me@hjkos.com> | 2019-10-07 20:43:23 +0300 |
|---|---|---|
| committer | Henry Jameson <me@hjkos.com> | 2019-10-07 20:43:23 +0300 |
| commit | e7532464e386b908321c8c202249c3855e83d722 (patch) | |
| tree | 87df255143fa066fcdfd2297e435760dc8c2e7be /src/components/post_status_form | |
| parent | 8ee50f9f160cab1a0eec3dfddd31de26c3993092 (diff) | |
Replaced most trivial checkboxes with Checkbox component
Diffstat (limited to 'src/components/post_status_form')
| -rw-r--r-- | src/components/post_status_form/post_status_form.js | 4 | ||||
| -rw-r--r-- | src/components/post_status_form/post_status_form.vue | 9 |
2 files changed, 6 insertions, 7 deletions
diff --git a/src/components/post_status_form/post_status_form.js b/src/components/post_status_form/post_status_form.js index db501dc1..9659f296 100644 --- a/src/components/post_status_form/post_status_form.js +++ b/src/components/post_status_form/post_status_form.js @@ -8,6 +8,7 @@ import { findOffset } from '../../services/offset_finder/offset_finder.service.j import { reject, map, uniqBy } from 'lodash' import suggestor from '../emoji_input/suggestor.js' import { mapGetters } from 'vuex' +import Checkbox from '../checkbox/checkbox.vue' const buildMentionsString = ({ user, attentions = [] }, currentUser) => { let allAttentions = [...attentions] @@ -36,7 +37,8 @@ const PostStatusForm = { MediaUpload, EmojiInput, PollForm, - ScopeSelector + ScopeSelector, + Checkbox }, mounted () { this.resize(this.$refs.textarea) diff --git a/src/components/post_status_form/post_status_form.vue b/src/components/post_status_form/post_status_form.vue index 4916d988..237ed725 100644 --- a/src/components/post_status_form/post_status_form.vue +++ b/src/components/post_status_form/post_status_form.vue @@ -261,12 +261,9 @@ v-if="newStatus.files.length > 0" class="upload_settings" > - <input - id="filesSensitive" - v-model="newStatus.nsfw" - type="checkbox" - > - <label for="filesSensitive">{{ $t('post_status.attachments_sensitive') }}</label> + <Checkbox v-model="newStatus.nsfw"> + {{ $t('post_status.attachments_sensitive') }} + </Checkbox> </div> </form> </div> |
