Skip to content
Snippets Groups Projects
Commit 0878f56f authored by Hermann's avatar Hermann
Browse files

make add-button in tableView optional

parent c1aba972
No related branches found
No related tags found
No related merge requests found
...@@ -82,7 +82,7 @@ export default class TableView { ...@@ -82,7 +82,7 @@ export default class TableView {
attrs: { attrs: {
controller, controller,
titles, titles,
onAdd = () => {}, onAdd = false,
tableHeight = false, tableHeight = false,
}, },
}) { }) {
...@@ -98,12 +98,12 @@ export default class TableView { ...@@ -98,12 +98,12 @@ export default class TableView {
}, },
fullWidth: false, fullWidth: false,
}), }),
m(Button, { onAdd ? m(Button, {
className: 'blue-button', className: 'blue-button',
borders: true, borders: true,
label: 'Add', label: 'Add',
events: { onclick: () => { onAdd(); } }, events: { onclick: () => { onAdd(); } },
}), }) : '',
], ],
}), }),
m(List, { m(List, {
......
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