You must bind your toggleModal function with the delete button and your deleteUser function with the ok button in modal mode.
For instance:
//button to call modal <button {{action 'showModal' 'modal-main'}}>Delete User</button> //ok button on the modal <button {{action 'deleteAfterConfirm' 'modal-main'}}>Ok</button> export default Ember.Controller.extend({ actions: { deleteAfterConfirm: function(userId) { if (confirm("Want to delete?");) { //deleteUser } }, showModal: function(targetId) { var modal = Ember.Views.views[targetId]; modal.send('toggleModal'); } } });
You can describe in detail here how to create and style your modal.
source share