Skip to content
Snippets Groups Projects
Commit f61a8f88 authored by Sandro Lutz's avatar Sandro Lutz
Browse files

Fix button redraw issue (Resolves #15)

parent 20e2b174
No related branches found
No related tags found
No related merge requests found
......@@ -35,6 +35,10 @@ export default class ButtonComponent {
};
}
onbeforeupdate(vnode) {
this.defaultProps.disabled = vnode.attrs.active === false;
}
view(vnode) {
return m(Button, { ...this.defaultProps, ...vnode.attrs });
}
......
......@@ -5,6 +5,7 @@ import { Error401 } from '../errors';
import inputGroup from '../form/inputGroup';
import selectGroup from '../form/selectGroup';
import { Button } from '../../components';
import { log } from '../../models/log';
export default class studydocNew {
oninit() {
......@@ -133,6 +134,8 @@ export default class studydocNew {
this.doc.files = e.target.files;
if (this.doc.files.length > 0) {
this.isValid = true;
} else {
this.isValid = false;
}
},
}),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment