From 285d66eddf83db930b1b7509839334dc1be76e9a Mon Sep 17 00:00:00 2001
From: AkiraFukushima
Date: Wed, 8 Feb 2023 22:22:08 +0900
Subject: [PATCH] refs #4085 Show reply target message on compose
---
.../components/TimelineSpace/Compose.vue | 14 +-
.../TimelineSpace/Compose/Quote.vue | 125 ++++++++++++++++++
.../components/molecules/Toot/Quote.vue | 2 +-
src/renderer/components/organisms/Toot.vue | 5 +-
src/renderer/store/TimelineSpace/Compose.ts | 10 +-
5 files changed, 141 insertions(+), 15 deletions(-)
create mode 100644 src/renderer/components/TimelineSpace/Compose/Quote.vue
diff --git a/src/renderer/components/TimelineSpace/Compose.vue b/src/renderer/components/TimelineSpace/Compose.vue
index 013e4d07..94fc17d7 100644
--- a/src/renderer/components/TimelineSpace/Compose.vue
+++ b/src/renderer/components/TimelineSpace/Compose.vue
@@ -1,5 +1,6 @@
+
{
if (current) {
- form.status = `@${current.acct} `
+ form.status = `@${current.account.acct} `
}
})
@@ -411,6 +413,10 @@ export default defineComponent({
e.preventDefault()
}
+ const clearReply = () => {
+ store.commit(`${space}/${MUTATION_TYPES.CLEAR_REPLY_TO_ID}`)
+ }
+
return {
form,
post,
@@ -434,7 +440,9 @@ export default defineComponent({
expiresList,
addPollOption,
removePollOption,
- droppableVisible
+ droppableVisible,
+ inReplyTo,
+ clearReply
}
}
})
diff --git a/src/renderer/components/TimelineSpace/Compose/Quote.vue b/src/renderer/components/TimelineSpace/Compose/Quote.vue
new file mode 100644
index 00000000..ce4db333
--- /dev/null
+++ b/src/renderer/components/TimelineSpace/Compose/Quote.vue
@@ -0,0 +1,125 @@
+
+
+
+
+
+
+
diff --git a/src/renderer/components/molecules/Toot/Quote.vue b/src/renderer/components/molecules/Toot/Quote.vue
index 69d00053..ff069026 100644
--- a/src/renderer/components/molecules/Toot/Quote.vue
+++ b/src/renderer/components/molecules/Toot/Quote.vue
@@ -41,7 +41,7 @@ export default defineComponent({
})
-