Add "danger" style for "delete" grid row action

This commit is contained in:
Lance Edgar 2020-03-19 00:02:27 -05:00
parent e57010cd3d
commit 3223a77cb1

View file

@ -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