Search improvements

Former-commit-id: 02833b77fadd0e4a71bf7c6eb9a989f22341d6d9 [formerly 4af05232c153b5a692ca2dc1e11086886380f59a] [formerly a7404255b9b512ff57166674caaf9a25b39b0d65 [formerly 690f515439ef36c956e33c32d427403bf59b0402]]
Former-commit-id: 90f73bf9c4f0384dbe5c839885dcac7b5fdc15fa [formerly 8b43240cb17d54d087978ededbac39e354b21d8e]
Former-commit-id: 3844ae5471aa4b32a37c2469ab28e3a4bc1fedb4
This commit is contained in:
Henrique Dias
2017-06-30 15:02:45 +01:00
parent 5d84c22a91
commit 8d00050b9c
2 changed files with 69 additions and 64 deletions

View File

@@ -25,7 +25,7 @@
</template>
<script>
import { mapMutations } from 'vuex'
import { mapMutations, mapGetters } from 'vuex'
import filesize from 'filesize'
import moment from 'moment'
import webdav from '../webdav.js'
@@ -35,8 +35,8 @@ export default {
name: 'item',
props: ['name', 'isDir', 'url', 'type', 'size', 'modified', 'index'],
methods: {
// ...mapGetters('selectedCount'),
...mapMutations('addSelected', 'removeSelected'),
...mapGetters(['selectedCount']),
...mapMutations(['addSelected', 'removeSelected']),
icon: function () {
if (this.isDir) return 'folder'
if (this.type === 'image') return 'insert_photo'