implement Files view as table

This commit is contained in:
j3d1 2019-12-24 19:52:22 +01:00
parent d1279eb098
commit 5c56329ee3
2 changed files with 25 additions and 2 deletions

View file

@ -10,7 +10,7 @@
>
<div class="btn-group">
<button class="btn btn-secondary" @click.stop="showBoxContent(item.name)" >
<font-awesome-icon icon="archive"/> content
<!--font-awesome-icon icon="archive"/--> content
</button>
<button class="btn btn-danger" @click.stop="" >
<font-awesome-icon icon="trash"/> delete

View file

@ -1,10 +1,33 @@
<template>
<p>Files</p>
<div class="container-fluid px-xl-5 mt-3">
<div class="row">
<div class="col-xl-8 offset-xl-2">
<Table
:columns="['hash', 'uid']"
:items="loadedItems"
:keyName="'hash'"
v-slot="{ item }"
>
<div class="btn-group">
<button class="btn btn-danger" @click.stop="" >
<font-awesome-icon icon="trash"/> delete
</button>
</div>
</Table>
</div>
</div>
</div>
</template>
<script>
import {mapActions, mapState} from 'vuex';
import Table from '@/components/Table';
export default {
name: 'Files',
components: {Table},
computed: mapState(['loadedItems']),
methods: mapActions([]),
};
</script>