Always show all grid actions...for now
we don't have a great way to accommodate too many actions; ideally could hide some in a drawer, but for now we just show them all for simplicity...
This commit is contained in:
parent
897bb177bc
commit
fe584f193f
|
@ -187,7 +187,9 @@
|
||||||
|
|
||||||
% if grid.main_actions or grid.more_actions:
|
% if grid.main_actions or grid.more_actions:
|
||||||
<b-table-column field="actions" label="Actions">
|
<b-table-column field="actions" label="Actions">
|
||||||
% for action in grid.main_actions:
|
## TODO: we do not currently differentiate for "main vs. more"
|
||||||
|
## here, but ideally we would tuck "more" away in a drawer etc.
|
||||||
|
% for action in grid.main_actions + grid.more_actions:
|
||||||
<a v-if="props.row._action_url_${action.key}"
|
<a v-if="props.row._action_url_${action.key}"
|
||||||
:href="props.row._action_url_${action.key}"
|
:href="props.row._action_url_${action.key}"
|
||||||
class="grid-action${' has-text-danger' if action.key == 'delete' else ''}"
|
class="grid-action${' has-text-danger' if action.key == 'delete' else ''}"
|
||||||
|
|
Loading…
Reference in a new issue