Add "danger" style for "delete" grid row action
This commit is contained in:
parent
e57010cd3d
commit
3223a77cb1
|
@ -180,7 +180,7 @@
|
||||||
% for action in grid.main_actions:
|
% for action in grid.main_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"
|
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