Add Buefy support for "delete w/ simple confirm" from index grid
This commit is contained in:
parent
3775c53df3
commit
f727c87b56
6 changed files with 71 additions and 9 deletions
|
@ -145,7 +145,12 @@
|
|||
% if grid.main_actions or grid.more_actions:
|
||||
<b-table-column field="actions" label="Actions">
|
||||
% for action in grid.main_actions:
|
||||
<a :href="props.row._action_url_${action.key}"><i class="fas fa-${action.icon}"></i>
|
||||
<a :href="props.row._action_url_${action.key}"
|
||||
% if action.click_handler:
|
||||
@click.prevent="${action.click_handler}"
|
||||
% endif
|
||||
>
|
||||
<i class="fas fa-${action.icon}"></i>
|
||||
${action.label}
|
||||
</a>
|
||||
|
||||
|
@ -224,7 +229,3 @@
|
|||
}
|
||||
|
||||
</script>
|
||||
|
||||
<div id="tailbone-grid-app">
|
||||
<tailbone-grid></tailbone-grid>
|
||||
</div>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue