Skip to content

Commit

Permalink
fixing file navigation
Browse files Browse the repository at this point in the history
  • Loading branch information
dianamariand92 committed Jan 20, 2021
1 parent 9ea18d9 commit 5c09a7e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
3 changes: 1 addition & 2 deletions ui/src/components/services.js
Original file line number Diff line number Diff line change
Expand Up @@ -210,15 +210,14 @@ export default {
},

getBucketFilesCall(params, callBackHandler){
let stream = this.minioClient.listObjects(params.name, params.prefix, true,)
let stream = this.minioClient.listObjectsV2(params.name, params.prefix, true)
var funct = {
err : "",
files: []
};
stream.on('data', function(obj)
{
funct.files.push(obj);

})
stream.on('error', function(err)
{
Expand Down
10 changes: 8 additions & 2 deletions ui/src/views/BucketContent.vue
Original file line number Diff line number Diff line change
Expand Up @@ -160,23 +160,29 @@
</template>
<template slot="items" slot-scope="props" expand="true">
<tr :active="props.selected" @mouseover="c_index=props.index" @mouseleave="c_index=-1" >
<td class="justify-center" @click="props.selected = !props.selected" >
<td v-if="props.item.name!=''" class="justify-center" @click="props.selected = !props.selected" >
<v-icon v-show="c_index!=props.index && props.selected != true" :color="props.item.color">{{props.item.icon}}</v-icon>
<v-checkbox
:input-value="props.selected"
primary
hide-details
v-show ="props.index==c_index || props.selected == true"
></v-checkbox>
</td>
<td v-else class="justify-center" @click="props.selected = !props.selected" >

</td>
<td v-if="props.item.icon =='folder'" @click="fetchData({'path':props.item.path, 'name':props.item.name})" class="text-xs-center pointer">{{ props.item.name }}</td>
<td v-else class="text-xs-center">{{ props.item.name }}</td>
<td class="text-xs-center">{{ findFilesize(props.item.size) }}</td>
<td class="text-xs-center">{{ findDate(props.item.lastModified) }}</td>
<td class="justify-center">
<td v-if="props.item.name!=''" class="justify-center">
<v-icon style="margin-right:10px;" v-if="props.item.icon=='insert_photo'" small @click="previewFile(props.item)" color="blue darken-2">visibility</v-icon>
<v-icon style="margin-right:10px;" v-if="props.item.icon!='insert_photo'" small color="grey">visibility_off</v-icon>
<v-icon small @click="removeFile(props.item)" color="red darken-2">delete_forever</v-icon>
</td>
<td v-else class="justify-center">

</td>
</tr>
</template>
Expand Down

0 comments on commit 5c09a7e

Please sign in to comment.