mirror of
https://github.com/cheeaun/phanpy.git
synced 2025-03-14 12:18:30 +03:00
Oops, forgot to put confirm dialog before boosting
This commit is contained in:
parent
bf907abc17
commit
1538400dc0
1 changed files with 8 additions and 0 deletions
|
@ -455,6 +455,14 @@ function Status({
|
|||
count={reblogsCount}
|
||||
onClick={async () => {
|
||||
try {
|
||||
if (!reblogged) {
|
||||
const yes = confirm(
|
||||
'Are you sure that you want to boost this post?',
|
||||
);
|
||||
if (!yes) {
|
||||
return;
|
||||
}
|
||||
}
|
||||
// Optimistic
|
||||
states.statuses.set(id, {
|
||||
...status,
|
||||
|
|
Loading…
Add table
Reference in a new issue