implement Files view as table
This commit is contained in:
parent
d1279eb098
commit
5c56329ee3
2 changed files with 25 additions and 2 deletions
|
@ -10,7 +10,7 @@
|
||||||
>
|
>
|
||||||
<div class="btn-group">
|
<div class="btn-group">
|
||||||
<button class="btn btn-secondary" @click.stop="showBoxContent(item.name)" >
|
<button class="btn btn-secondary" @click.stop="showBoxContent(item.name)" >
|
||||||
<font-awesome-icon icon="archive"/> content
|
<!--font-awesome-icon icon="archive"/--> content
|
||||||
</button>
|
</button>
|
||||||
<button class="btn btn-danger" @click.stop="" >
|
<button class="btn btn-danger" @click.stop="" >
|
||||||
<font-awesome-icon icon="trash"/> delete
|
<font-awesome-icon icon="trash"/> delete
|
||||||
|
|
|
@ -1,10 +1,33 @@
|
||||||
<template>
|
<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>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
import {mapActions, mapState} from 'vuex';
|
||||||
|
import Table from '@/components/Table';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'Files',
|
name: 'Files',
|
||||||
|
components: {Table},
|
||||||
|
computed: mapState(['loadedItems']),
|
||||||
|
methods: mapActions([]),
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue