Commit 07644908 authored by Hermann's avatar Hermann
Browse files

update to naming changes in ui components

parent b1179100
......@@ -18,7 +18,7 @@
"@material/drawer": "^0.30.0",
"@material/select": "^0.35.1",
"ajv": "^5.5.0",
"amiv-web-ui-components": "git+https://git@gitlab.ethz.ch/amiv/web-ui-components.git#65a84b6e626bd54af4d5b74306c706bcbc3b4519",
"amiv-web-ui-components": "git+https://git@gitlab.ethz.ch/amiv/web-ui-components.git#b1fb1eba5b149a7f083c70b949437a067fee8e5d",
"axios": "^0.17.1",
"client-oauth2": "^4.2.0",
"mithril": "^1.1.6",
......
import m from 'mithril';
import { RaisedButton, RadioGroup, Switch, Dialog, Button } from 'polythene-mithril';
import { fileInput } from 'amiv-web-ui-components';
import { FileInput } from 'amiv-web-ui-components';
import { styler } from 'polythene-core-css';
// eslint-disable-next-line import/extensions
import { apiUrl, ownUrl } from 'networkConfig';
......@@ -373,7 +373,7 @@ export default class newEvent extends EditView {
src: `${apiUrl}${this.form.data[`img_${key}`].file}`,
style: { 'max-height': '50px', 'max-width': '100px' },
}) : m('div', `currently no ${key} image set`),
m(fileInput, this.form.bind({
m(FileInput, this.form.bind({
name: `new_${key}`,
label: `New ${key} Image`,
accept: 'image/png, image/jpeg',
......
import m from 'mithril';
import { RadioGroup, textInput, Form } from 'amiv-web-ui-components';
import { RadioGroup, TextInput, Form } from 'amiv-web-ui-components';
// eslint-disable-next-line import/extensions
import { apiUrl } from 'networkConfig';
import EditView from '../views/editView';
......@@ -27,7 +27,7 @@ export default class UserEdit extends EditView {
email: { type: 'text', label: 'Email' },
nethz: { type: 'text', label: 'NETHZ' },
}),
m(textInput, this.form.bind({
m(TextInput, this.form.bind({
type: 'password',
name: 'password',
label: 'New password',
......
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