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

Minor corrections on studydocuments list

parent 2d48bb5c
...@@ -109,15 +109,12 @@ export default class editDoc extends EditView { ...@@ -109,15 +109,12 @@ export default class editDoc extends EditView {
], ],
})), })),
}), }),
// additional file // additional file
m(Button, { m(Button, {
label: 'Additional File', label: 'Additional File',
className: 'blue-button', className: 'blue-button',
border: true, border: true,
// onclick to be enabled
events: { onclick: () => { this.form.data.files.push({ name: 'add file' }); } }, events: { onclick: () => { this.form.data.files.push({ name: 'add file' }); } },
}), }),
]), ]),
]); ]);
......
...@@ -31,7 +31,7 @@ export default class StudydocTable { ...@@ -31,7 +31,7 @@ export default class StudydocTable {
keys: config.tableKeys, keys: config.tableKeys,
tileContent: this.getItemData, tileContent: this.getItemData,
titles: [ titles: [
{ text: 'Titel', width: 'calc(100% - 32em)' }, { text: 'Title', width: 'calc(100% - 32em)' },
{ text: 'Department', width: '6em' }, { text: 'Department', width: '6em' },
{ text: 'Semester', width: '6em' }, { text: 'Semester', width: '6em' },
{ text: 'Lecture', width: '10em' }, { text: 'Lecture', width: '10em' },
......
...@@ -55,7 +55,7 @@ export default class EditView extends ItemView { ...@@ -55,7 +55,7 @@ export default class EditView extends ItemView {
submit(data) { submit(data) {
let request; let request;
if (this.controller.modus === 'edit') { if (this.controller.modus === 'edit') {
// if id is known, this is a patch to an existing item // this is a patch to an existing item
request = this.controller.patch(data); request = this.controller.patch(data);
} else { } else {
request = this.controller.post(data); request = this.controller.post(data);
......
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