Skip to content

Commit

Permalink
update usage of mimetypes getter
Browse files Browse the repository at this point in the history
  • Loading branch information
elizavetaRa committed Nov 11, 2021
1 parent 0b507fd commit bae2bd6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/web-app-files/src/components/AppBar/AppBar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@
</oc-button>
</div>
</li>
<template v-if="getMimeTypes">
<template v-if="mimeTypes">
<li v-for="(mimetype, key) in mimetypesAllowedForCreation" :key="key">
<div>
<oc-button
Expand Down Expand Up @@ -156,7 +156,7 @@ export default {
fileFolderCreationLoading: false
}),
computed: {
...mapGetters('External', ['getMimeTypes']),
...mapGetters('External', ['mimeTypes']),
...mapGetters(['getToken', 'configuration', 'newFileHandlers', 'quota', 'user']),
...mapGetters('Files', [
'files',
Expand All @@ -169,7 +169,7 @@ export default {
...mapState('Files', ['areHiddenFilesShown']),
mimetypesAllowedForCreation() {
return this.getMimeTypes.filter((mimetype) => mimetype.allow_creation) || []
return this.mimeTypes.filter((mimetype) => mimetype.allow_creation) || []
},
newButtonTooltip() {
if (!this.canUpload) {
Expand Down

0 comments on commit bae2bd6

Please sign in to comment.