You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

43 lines
905 B

<app-file-index>
<div class="view">
<div class="file">
<div class="file__item m-bottom-3" each={ file in state.files }>
<a href="/file/{ file.name }">
{ file.name }
</a>
</div>
</div>
</div>
<script>
import fileStore from './../../stores/file.js'
/**
* handle open and close of form for tasks
*
*
* @author Björn Hase, <me@herr-hase.wtf>
*
*/
export default {
state: {
files: []
},
onMounted()
{
fileStore.on('update', (data) => {
this.state.files = data
this.update()
})
fileStore.get(this.props.hubId)
}
}
</script>
</app-file-index>