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