diff options
| author | tusooa <tusooa@kazv.moe> | 2023-08-19 02:33:26 +0000 |
|---|---|---|
| committer | tusooa <tusooa@kazv.moe> | 2023-08-19 02:33:26 +0000 |
| commit | f059c1f314be5979d32cd5726b28fd1b21738972 (patch) | |
| tree | 896836b3c533fa940c45ebc68f0a44c766fade3c /src/components/status/status.vue | |
| parent | a1641193b5b7c72e919b9848b167bc4d4a40444b (diff) | |
| parent | 1b081a927288ff2f43025d688e2fa15cf6ce6be1 (diff) | |
Merge branch 'tusooa/quote' into 'develop'
Quote
See merge request pleroma/pleroma-fe!1846
Diffstat (limited to 'src/components/status/status.vue')
| -rw-r--r-- | src/components/status/status.vue | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/src/components/status/status.vue b/src/components/status/status.vue index 35b15362..c49a9e7b 100644 --- a/src/components/status/status.vue +++ b/src/components/status/status.vue @@ -364,6 +364,45 @@ @parseReady="setHeadTailLinks" /> + <article + v-if="hasVisibleQuote" + class="quoted-status" + > + <button + class="button-unstyled -link display-quoted-status-button" + :aria-expanded="shouldDisplayQuote" + @click="toggleDisplayQuote" + > + {{ shouldDisplayQuote ? $t('status.hide_quote') : $t('status.display_quote') }} + <FAIcon + class="display-quoted-status-button-icon" + :icon="shouldDisplayQuote ? 'chevron-up' : 'chevron-down'" + /> + </button> + <Status + v-if="shouldDisplayQuote" + :statusoid="quotedStatus" + :in-quote="true" + /> + </article> + <p + v-else-if="hasInvisibleQuote" + class="quoted-status -unavailable-prompt" + > + <i18n-t keypath="status.invisible_quote"> + <template #link> + <bdi> + <a + :href="status.quote_url" + target="_blank" + > + {{ status.quote_url }} + </a> + </bdi> + </template> + </i18n-t> + </p> + <div v-if="inConversation && !isPreview && replies && replies.length" class="replies" |
