From a9f374b18f1092fe79d39a8cb35274f9b75a2b89 Mon Sep 17 00:00:00 2001 From: tusooa Date: Fri, 10 Mar 2023 13:22:44 -0500 Subject: [PATCH] Display information about replied-to/edited status --- src/components/draft/draft.js | 7 +++++- src/components/draft/draft.vue | 46 ++++++++++++++++++++++++++++------ src/i18n/en.json | 4 ++- 3 files changed, 48 insertions(+), 9 deletions(-) diff --git a/src/components/draft/draft.js b/src/components/draft/draft.js index 8c4b662b..9b052606 100644 --- a/src/components/draft/draft.js +++ b/src/components/draft/draft.js @@ -1,10 +1,12 @@ import PostStatusForm from 'src/components/post_status_form/post_status_form.vue' import ConfirmModal from 'src/components/confirm_modal/confirm_modal.vue' +import StatusContent from 'src/components/status_content/status_content.vue' const Draft = { components: { PostStatusForm, - ConfirmModal + ConfirmModal, + StatusContent }, props: { draft: { @@ -33,6 +35,9 @@ const Draft = { draftId: this.draft.id, ...this.relAttrs } + }, + refStatus () { + return this.draft.refId ? this.$store.state.statuses.allStatusesObject[this.draft.refId] : undefined } }, methods: { diff --git a/src/components/draft/draft.vue b/src/components/draft/draft.vue index dbea442b..6e1b65bd 100644 --- a/src/components/draft/draft.vue +++ b/src/components/draft/draft.vue @@ -1,8 +1,5 @@