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:
Lance Edgar 2021-08-28 18:45:31 -05:00
parent 897bb177bc
commit fe584f193f

View file

@ -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 ''}"