Files
Unify/application/demo/comment/edit/comment.deleteButton.js

38 lines
430 B
JavaScript
Raw Normal View History

2025-12-25 11:16:59 +01:00
import button from '/elements/button.js';
export default class deleteButton extends button {
label = "Delete";
#ifdef ANDROID
fontSize = 12;
width = "auto"
height = "auto"
#endif
async click() {
var sure = confirm("Are you sure you want to delete this Post");
if( sure ) {
this.parent.parent.delete();
this.parent.parent.remove();
}
}
}