summaryrefslogtreecommitdiff
path: root/packages/frontend/src/components/MkNoteSub.vue
diff options
context:
space:
mode:
authorMar0xy <marie@kaifa.ch>2023-10-15 18:03:27 +0200
committerMar0xy <marie@kaifa.ch>2023-10-15 18:03:27 +0200
commit48c7eeb57eb013c88515ca4176c426e33278c345 (patch)
treeffee37ecfc4d8996f29d3ef858f45393c8d46308 /packages/frontend/src/components/MkNoteSub.vue
parentupd: add locale for quoted, add toasts and effects (diff)
downloadsharkey-48c7eeb57eb013c88515ca4176c426e33278c345.tar.gz
sharkey-48c7eeb57eb013c88515ca4176c426e33278c345.tar.bz2
sharkey-48c7eeb57eb013c88515ca4176c426e33278c345.zip
fix: prevent quoted toast to be triggered when not quoted
Diffstat (limited to 'packages/frontend/src/components/MkNoteSub.vue')
-rw-r--r--packages/frontend/src/components/MkNoteSub.vue2
1 files changed, 2 insertions, 0 deletions
diff --git a/packages/frontend/src/components/MkNoteSub.vue b/packages/frontend/src/components/MkNoteSub.vue
index a701766c25..9976892355 100644
--- a/packages/frontend/src/components/MkNoteSub.vue
+++ b/packages/frontend/src/components/MkNoteSub.vue
@@ -326,6 +326,7 @@ function quote() {
limit: 1,
quote: true,
}).then((res) => {
+ if (!(res.length > 0)) return;
const el = quoteButton.value as HTMLElement | null | undefined;
if (el && res.length > 0) {
const rect = el.getBoundingClientRect();
@@ -348,6 +349,7 @@ function quote() {
limit: 1,
quote: true,
}).then((res) => {
+ if (!(res.length > 0)) return;
const el = quoteButton.value as HTMLElement | null | undefined;
if (el && res.length > 0) {
const rect = el.getBoundingClientRect();