add direct link from box view to items filtered by box

This commit is contained in:
j3d1 2019-12-22 22:32:15 +01:00
parent 372d773ec4
commit 90b9d63bb5
4 changed files with 24 additions and 4 deletions

View file

@ -24,11 +24,17 @@
>
</div>
</th>
<th>actions</th>
</tr>
</thead>
<tbody>
<tr v-for="item in internalItems" :key="item[keyName]" @click="$emit('itemActivated', item)">
<td v-for="(column, index) in columns" :key="index">{{ item[column] }}</td>
<td>
<div class="btn-group">
<button class="btn btn-outline-secondary" v-for="(action, a_index) in actions" :key="a_index" @click="action.fun&&action.fun(item, action)">{{action.name}}</button>
</div>
</td>
</tr>
</tbody>
</table>