Implement edit user modal

EditUserHandler is a bit rough
This commit is contained in:
Toby Zerner
2015-08-05 11:49:37 +09:30
parent fff2ffe847
commit 1679f1e27b
12 changed files with 236 additions and 26 deletions

View File

@ -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();