Verified Commit 8cb718eb authored by Hermann's avatar Hermann Committed by Sandro Lutz
Browse files

update to new ui-components

parent c562805d
import m from 'mithril'; import m from 'mithril';
import { fileInput } from 'amiv-web-ui-components'; import { FileInput } from 'amiv-web-ui-components';
import { RadioGroup, Button, List, ListTile } from 'polythene-mithril'; import { RadioGroup, Button, List, ListTile } from 'polythene-mithril';
import EditView from '../views/editView'; import EditView from '../views/editView';
...@@ -64,7 +64,7 @@ export default class editDoc extends EditView { ...@@ -64,7 +64,7 @@ export default class editDoc extends EditView {
m(List, { m(List, {
tiles: this.form.data.files.map(file => m(ListTile, { tiles: this.form.data.files.map(file => m(ListTile, {
content: [ content: [
m(fileInput, this.form.bind({ m(FileInput, this.form.bind({
name: 'new_file', name: 'new_file',
label: `${file.name}`, label: `${file.name}`,
})), })),
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment