Ask confirmation before deleting a toot.
This commit is contained in:
parent
8681a926dc
commit
5b69f2f094
|
@ -144,7 +144,7 @@ statusActionsView status currentUser =
|
||||||
a
|
a
|
||||||
[ class <| baseBtnClasses ++ " btn-delete"
|
[ class <| baseBtnClasses ++ " btn-delete"
|
||||||
, href ""
|
, href ""
|
||||||
, onClickWithPreventAndStop <| DeleteStatus sourceStatus.id
|
, onClickWithPreventAndStop <| AskConfirm "Are you sure you want to delete this toot?" (DeleteStatus sourceStatus.id) NoOp
|
||||||
]
|
]
|
||||||
[ Common.icon "trash" ]
|
[ Common.icon "trash" ]
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in New Issue