summaryrefslogtreecommitdiff
path: root/packages/frontend/src/components/MkNoteSub.vue
diff options
context:
space:
mode:
Diffstat (limited to 'packages/frontend/src/components/MkNoteSub.vue')
-rw-r--r--packages/frontend/src/components/MkNoteSub.vue20
1 files changed, 20 insertions, 0 deletions
diff --git a/packages/frontend/src/components/MkNoteSub.vue b/packages/frontend/src/components/MkNoteSub.vue
index 4a8d6c0d32..a701766c25 100644
--- a/packages/frontend/src/components/MkNoteSub.vue
+++ b/packages/frontend/src/components/MkNoteSub.vue
@@ -241,7 +241,16 @@ function undoRenote() : void {
os.api("notes/unrenote", {
noteId: appearNote.id,
});
+ os.toast(i18n.ts.rmboost);
renoted.value = false;
+
+ const el = renoteButton.value as HTMLElement | null | undefined;
+ if (el) {
+ const rect = el.getBoundingClientRect();
+ const x = rect.left + (el.offsetWidth / 2);
+ const y = rect.top + (el.offsetHeight / 2);
+ os.popup(MkRippleEffect, { x, y }, {}, 'end');
+ }
}
function undoQuote() : void {
@@ -249,7 +258,16 @@ function undoQuote() : void {
noteId: appearNote.id,
quote: true
});
+ os.toast(i18n.ts.rmquote);
quoted.value = false;
+
+ const el = quoteButton.value as HTMLElement | null | undefined;
+ if (el) {
+ const rect = el.getBoundingClientRect();
+ const x = rect.left + (el.offsetWidth / 2);
+ const y = rect.top + (el.offsetHeight / 2);
+ os.popup(MkRippleEffect, { x, y }, {}, 'end');
+ }
}
let showContent = $ref(false);
@@ -317,6 +335,7 @@ function quote() {
}
quoted.value = res.length > 0;
+ os.toast(i18n.ts.quoted);
});
});
} else {
@@ -338,6 +357,7 @@ function quote() {
}
quoted.value = res.length > 0;
+ os.toast(i18n.ts.quoted);
});
});
}