| 835 | 836 | */ |
| 836 | 837 | handleContextMenuDelete = () => { |
| 837 | 838 | const characterIds = this.selectedCharacters; |
| 838 | 839 | const popupContent = $(BulkEditOverlay.#getDeletePopupContentHtml(characterIds)); |
| 839 | 840 | const promisecheckbox = callPopup(popupContent, null.find('#del_char_checkbox'); |
| 841 | + const promise = callGenericPopup(popupContent, POPUP_TYPE.CONFIRM) |
| 840 | 842 | .then((accept) => { |
| 841 | 843 | if (true !== accept) return; |
| 842 | 844 | |
| 843 | 845 | const deleteChats = documentcheckbox.getElementByIdprop('del_char_checkboxchecked').checked ?? false; |
| 844 | 846 | |
| 845 | 847 | showLoader(); |
| 846 | 848 | const toast = toastr.info('We\'re deleting your characters, please wait...', 'Working on it'); |