diff options
| author | Henry Jameson <me@hjkos.com> | 2020-10-17 21:26:13 +0300 |
|---|---|---|
| committer | Henry Jameson <me@hjkos.com> | 2020-10-17 21:26:13 +0300 |
| commit | a664fde02f5f5eec96bbcaa2b6f19e1694541e76 (patch) | |
| tree | 251b21d50cb6e0dbc8a4d8082989266aca6c8e54 /src/components/status/status.vue | |
| parent | 29ff0be92cfd87ba95d1f78323794dfb1223b514 (diff) | |
| parent | 76a9a51620c01257492a450f6cd0a6f98a885dce (diff) | |
Merge remote-tracking branch 'origin/develop' into settings-changed
* origin/develop:
fix fontello
Translated using Weblate (Russian)
Translated using Weblate (Italian)
lint fix
fixed copy-pasting leftovers
improved algorithm, possibly speed too
fix 8x spaces inside this paren
feat/reorder-emojis-by-position-of-keyword
rename to gravestone
Apply 1 suggestion(s) to 1 file(s)
change i18n phrasing
separate reply button to its own component, add changelog entry
add basic deletes support that works with masto WS
Diffstat (limited to 'src/components/status/status.vue')
| -rw-r--r-- | src/components/status/status.vue | 40 |
1 files changed, 25 insertions, 15 deletions
diff --git a/src/components/status/status.vue b/src/components/status/status.vue index aa67e433..ffae32fc 100644 --- a/src/components/status/status.vue +++ b/src/components/status/status.vue @@ -95,6 +95,7 @@ </div> <div + v-if="!deleted" :class="[userClass, { highlighted: userStyle, '-repeat': retweet && !inConversation }]" :style="[ userStyle ]" class="status-container" @@ -323,21 +324,11 @@ v-if="!noHeading && !isPreview" class="status-actions" > - <div> - <i - v-if="loggedIn" - class="button-icon button-reply icon-reply" - :title="$t('tool_tip.reply')" - :class="{'-active': replying}" - @click.prevent="toggleReplying" - /> - <i - v-else - class="button-icon button-reply -disabled icon-reply" - :title="$t('tool_tip.reply')" - /> - <span v-if="status.replies_count > 0">{{ status.replies_count }}</span> - </div> + <reply-button + :replying="replying" + :status="status" + @toggle="toggleReplying" + /> <retweet-button :visibility="status.visibility" :logged-in="loggedIn" @@ -361,6 +352,25 @@ </div> </div> <div + v-else + class="gravestone" + > + <div class="left-side"> + <UserAvatar :compact="compact" /> + </div> + <div class="right-side"> + <div class="deleted-text"> + {{ $t('status.status_deleted') }} + </div> + <reply-button + v-if="replying" + :replying="replying" + :status="status" + @toggle="toggleReplying" + /> + </div> + </div> + <div v-if="replying" class="status-container reply-form" > |
