|
@@ -30,6 +30,9 @@
|
|
|
<span>{{ $t('post_status.scope_notice.public') }}</span>
|
|
|
<a
|
|
|
class="fa-scale-110 fa-old-padding dismiss"
|
|
|
+ :title="$t('post_status.scope_notice_dismiss')"
|
|
|
+ role="button"
|
|
|
+ tabindex="0"
|
|
|
@click.prevent="dismissScopeNotice()"
|
|
|
>
|
|
|
<FAIcon icon="times" />
|
|
@@ -42,6 +45,9 @@
|
|
|
<span>{{ $t('post_status.scope_notice.unlisted') }}</span>
|
|
|
<a
|
|
|
class="fa-scale-110 fa-old-padding dismiss"
|
|
|
+ :title="$t('post_status.scope_notice_dismiss')"
|
|
|
+ role="button"
|
|
|
+ tabindex="0"
|
|
|
@click.prevent="dismissScopeNotice()"
|
|
|
>
|
|
|
<FAIcon icon="times" />
|
|
@@ -54,6 +60,9 @@
|
|
|
<span>{{ $t('post_status.scope_notice.private') }}</span>
|
|
|
<a
|
|
|
class="fa-scale-110 fa-old-padding dismiss"
|
|
|
+ :title="$t('post_status.scope_notice_dismiss')"
|
|
|
+ role="button"
|
|
|
+ tabindex="0"
|
|
|
@click.prevent="dismissScopeNotice()"
|
|
|
>
|
|
|
<FAIcon icon="times" />
|
|
@@ -124,14 +133,17 @@
|
|
|
:suggest="emojiSuggestor"
|
|
|
class="form-control"
|
|
|
>
|
|
|
- <input
|
|
|
- v-model="newStatus.spoilerText"
|
|
|
- type="text"
|
|
|
- :placeholder="$t('post_status.content_warning')"
|
|
|
- :disabled="posting && !optimisticPosting"
|
|
|
- size="1"
|
|
|
- class="form-post-subject"
|
|
|
- >
|
|
|
+ <template #default="inputProps">
|
|
|
+ <input
|
|
|
+ v-model="newStatus.spoilerText"
|
|
|
+ type="text"
|
|
|
+ :placeholder="$t('post_status.content_warning')"
|
|
|
+ :disabled="posting && !optimisticPosting"
|
|
|
+ v-bind="propsToNative(inputProps)"
|
|
|
+ size="1"
|
|
|
+ class="form-post-subject"
|
|
|
+ >
|
|
|
+ </template>
|
|
|
</EmojiInput>
|
|
|
<EmojiInput
|
|
|
ref="emoji-input"
|
|
@@ -148,29 +160,32 @@
|
|
|
@sticker-upload-failed="uploadFailed"
|
|
|
@shown="handleEmojiInputShow"
|
|
|
>
|
|
|
- <textarea
|
|
|
- ref="textarea"
|
|
|
- v-model="newStatus.status"
|
|
|
- :placeholder="placeholder || $t('post_status.default')"
|
|
|
- rows="1"
|
|
|
- cols="1"
|
|
|
- :disabled="posting && !optimisticPosting"
|
|
|
- class="form-post-body"
|
|
|
- :class="{ 'scrollable-form': !!maxHeight }"
|
|
|
- @keydown.exact.enter="submitOnEnter && postStatus($event, newStatus)"
|
|
|
- @keydown.meta.enter="postStatus($event, newStatus)"
|
|
|
- @keydown.ctrl.enter="!submitOnEnter && postStatus($event, newStatus)"
|
|
|
- @input="resize"
|
|
|
- @compositionupdate="resize"
|
|
|
- @paste="paste"
|
|
|
- />
|
|
|
- <p
|
|
|
- v-if="hasStatusLengthLimit"
|
|
|
- class="character-counter faint"
|
|
|
- :class="{ error: isOverLengthLimit }"
|
|
|
- >
|
|
|
- {{ charactersLeft }}
|
|
|
- </p>
|
|
|
+ <template #default="inputProps">
|
|
|
+ <textarea
|
|
|
+ ref="textarea"
|
|
|
+ v-model="newStatus.status"
|
|
|
+ :placeholder="placeholder || $t('post_status.default')"
|
|
|
+ rows="1"
|
|
|
+ cols="1"
|
|
|
+ :disabled="posting && !optimisticPosting"
|
|
|
+ class="form-post-body"
|
|
|
+ :class="{ 'scrollable-form': !!maxHeight }"
|
|
|
+ v-bind="propsToNative(inputProps)"
|
|
|
+ @keydown.exact.enter="submitOnEnter && postStatus($event, newStatus)"
|
|
|
+ @keydown.meta.enter="postStatus($event, newStatus)"
|
|
|
+ @keydown.ctrl.enter="!submitOnEnter && postStatus($event, newStatus)"
|
|
|
+ @input="resize"
|
|
|
+ @compositionupdate="resize"
|
|
|
+ @paste="paste"
|
|
|
+ />
|
|
|
+ <p
|
|
|
+ v-if="hasStatusLengthLimit"
|
|
|
+ class="character-counter faint"
|
|
|
+ :class="{ error: isOverLengthLimit }"
|
|
|
+ >
|
|
|
+ {{ charactersLeft }}
|
|
|
+ </p>
|
|
|
+ </template>
|
|
|
</EmojiInput>
|
|
|
<div
|
|
|
v-if="!disableScopeSelector"
|
|
@@ -193,6 +208,7 @@
|
|
|
id="post-content-type"
|
|
|
v-model="newStatus.contentType"
|
|
|
class="form-control"
|
|
|
+ :attrs="{ 'aria-label': $t('post_status.content_type_selection') }"
|
|
|
>
|
|
|
<option
|
|
|
v-for="postFormat in postFormats"
|