From ee9300054c0d3b995fa30ffccc13e58aa3eeba3d Mon Sep 17 00:00:00 2001
From: AkiraFukushima
Date: Sat, 30 Apr 2022 15:49:24 +0900
Subject: [PATCH] Rewrite Modals/NewToot with composition API
---
src/renderer/components/TimelineSpace.vue | 1 -
.../TimelineSpace/Modals/NewToot.vue | 567 ++++++++++--------
.../components/{event.js => event.ts} | 0
.../store/TimelineSpace/Modals/NewToot.ts | 56 +-
4 files changed, 342 insertions(+), 282 deletions(-)
rename src/renderer/components/{event.js => event.ts} (100%)
diff --git a/src/renderer/components/TimelineSpace.vue b/src/renderer/components/TimelineSpace.vue
index 0e11bce5..6fce6248 100644
--- a/src/renderer/components/TimelineSpace.vue
+++ b/src/renderer/components/TimelineSpace.vue
@@ -119,7 +119,6 @@ export default {
return false
}
this.$store.dispatch('TimelineSpace/Modals/NewToot/openModal')
- this.$store.dispatch('TimelineSpace/Modals/NewToot/incrementMediaCount')
this.$store
.dispatch('TimelineSpace/Modals/NewToot/uploadImage', file)
.then(() => {
diff --git a/src/renderer/components/TimelineSpace/Modals/NewToot.vue b/src/renderer/components/TimelineSpace/Modals/NewToot.vue
index 894cb931..a76cb0be 100644
--- a/src/renderer/components/TimelineSpace/Modals/NewToot.vue
+++ b/src/renderer/components/TimelineSpace/Modals/NewToot.vue
@@ -7,18 +7,18 @@
:before-close="closeConfirm"
width="600px"
custom-class="new-toot-modal"
- ref="dialog"
+ ref="dialogRef"
>
-
-
+
+
-
-
+
+
@@ -122,7 +129,7 @@
-
{{ tootMax - status.length }}
+
{{ tootMax - statusText.length }}
{{ $t('modals.new_toot.cancel') }}
{{ $t('modals.new_toot.toot') }}
@@ -135,332 +142,366 @@
-