Skip to content

Commit

Permalink
Small adjustments
Browse files Browse the repository at this point in the history
  • Loading branch information
JammingBen committed Nov 15, 2022
1 parent af57e9e commit 071e81b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
3 changes: 1 addition & 2 deletions packages/web-app-files/src/components/FilesList/ListInfo.vue
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,7 @@ export default {
},
computed: {
items() {
const filesAndFolderCount = this.files + this.folders
return this.showSpaces ? filesAndFolderCount + this.spaces : filesAndFolderCount
return this.files + this.folders + (this.showSpaces ? this.spaces : 0)
},
text() {
const filesStr = this.$gettextInterpolate(
Expand Down
3 changes: 2 additions & 1 deletion packages/web-app-files/src/store/getters.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { isProjectSpaceResource } from 'web-client/src/helpers'
import { ShareTypes } from 'web-client/src/helpers/share'

export default {
Expand Down Expand Up @@ -32,7 +33,7 @@ export default {
totalFilesCount: (state, getters) => {
const fileCount = getters.filesAll.filter((file) => file.type === 'file').length
const folderCount = getters.filesAll.filter((file) => file.type === 'folder').length
const spaceCount = getters.filesAll.filter((file) => file.type === 'space').length
const spaceCount = getters.filesAll.filter((file) => isProjectSpaceResource(file)).length
return {
files: fileCount,
folders: folderCount,
Expand Down

0 comments on commit 071e81b

Please sign in to comment.