gooddialogs
clean develop
const resDialog = await goodDialogs.confirm('Mensaje')
async function deleteDocument() {
const resDialog = await goodDialogs.confirm("Delete?");
if (!resDialog) return goodDialogs.cancelled("cancelled");
const response = await apiService.delete('/api/v1/document/' + 4)
if (response.status < 400) {
goodDialogs.success("Success Delete!");
} else {
goodDialogs.cancelled("Error");
}
}