Add 'warning' class for 'delete' action in b-table grid
This commit is contained in:
parent
3ac8ca90ce
commit
37a60592f6
|
@ -47,6 +47,7 @@
|
||||||
<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 :href="props.row._action_url_${action.key}"
|
||||||
|
class="grid-action${' has-text-danger' if action.key == 'delete' else ''}"
|
||||||
% if action.click_handler:
|
% if action.click_handler:
|
||||||
@click.prevent="${action.click_handler}"
|
@click.prevent="${action.click_handler}"
|
||||||
% endif
|
% endif
|
||||||
|
|
Loading…
Reference in a new issue