mirror of
https://github.com/flarum/framework.git
synced 2025-05-24 07:39:56 +08:00
Implement edit user modal
EditUserHandler is a bit rough
This commit is contained in:
@ -109,10 +109,10 @@ export default class Modal extends Component {
|
||||
const errors = response && response.errors;
|
||||
|
||||
if (errors) {
|
||||
this.alert(new Alert({
|
||||
type: 'warning',
|
||||
message: errors.map((error, k) => [error.detail, k < errors.length - 1 ? m('br') : ''])
|
||||
}));
|
||||
this.alert = new Alert({
|
||||
type: 'error',
|
||||
children: errors.map((error, k) => [error.detail, k < errors.length - 1 ? m('br') : ''])
|
||||
});
|
||||
}
|
||||
|
||||
m.redraw();
|
||||
|
Reference in New Issue
Block a user