Show error messages in UI if something goes wrong
This commit is contained in:
@ -64,6 +64,7 @@
|
||||
onSuccess(data);
|
||||
})
|
||||
.catch(error => {
|
||||
htmx.trigger(htmx.find('#notification'), 'htmx:responseError', {xhr: {responseText: error.message}});
|
||||
onError(error);
|
||||
});
|
||||
},
|
||||
|
Reference in New Issue
Block a user