Only show action URL if present, for Buefy grid rows
This commit is contained in:
parent
6c228a59f2
commit
ec8ce36bd5
|
@ -170,7 +170,8 @@
|
||||||
% 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:
|
% for action in grid.main_actions:
|
||||||
<a :href="props.row._action_url_${action.key}"
|
<a v-if="props.row._action_url_${action.key}"
|
||||||
|
:href="props.row._action_url_${action.key}"
|
||||||
class="grid-action"
|
class="grid-action"
|
||||||
% if action.click_handler:
|
% if action.click_handler:
|
||||||
@click.prevent="${action.click_handler}"
|
@click.prevent="${action.click_handler}"
|
||||||
|
|
Loading…
Reference in a new issue