aboutsummaryrefslogtreecommitdiff
path: root/src/components/retweet_button/retweet_button.vue
diff options
context:
space:
mode:
authorTusooa Zhu <tusooa@kazv.moe>2022-02-09 15:49:39 -0500
committertusooa <tusooa@kazv.moe>2023-01-20 23:39:07 -0500
commit4d175235f1bc72c369c5e5fc8ed1997b384c0b83 (patch)
treee2f0f2a306a4aa97971074126f7d9f10d25e817d /src/components/retweet_button/retweet_button.vue
parentf8b522e36dd08a08cd7071c30b5e4e61832275aa (diff)
Add confirmation for repeating
Diffstat (limited to 'src/components/retweet_button/retweet_button.vue')
-rw-r--r--src/components/retweet_button/retweet_button.vue10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/components/retweet_button/retweet_button.vue b/src/components/retweet_button/retweet_button.vue
index 7700ee0d..38d4dc3f 100644
--- a/src/components/retweet_button/retweet_button.vue
+++ b/src/components/retweet_button/retweet_button.vue
@@ -59,6 +59,16 @@
>
{{ status.repeat_num }}
</span>
+ <confirm-modal
+ :showing="showingConfirmDialog"
+ :title="$t('status.repeat_confirm_title')"
+ :confirm-text="$t('status.repeat_confirm_accept_button')"
+ :cancel-text="$t('status.repeat_confirm_cancel_button')"
+ @accepted="doRetweet"
+ @cancelled="hideConfirmDialog"
+ >
+ {{ $t('status.repeat_confirm') }}
+ </confirm-modal>
</div>
</template>