mirror of
https://github.com/VueFileManager/vuefilemanager.git
synced 2026-04-19 00:22:15 +00:00
- [x] Ipad landscape in teams missing heads widget - [x] Ipad portrait (sm) full screen mode - [x] Ipad landscape add file handler button - [x] In recent upload, shared items and trash is search instead spotlight text button - [x] Dissapearing mobile context menu animation is buggy - [x] Fileitemgrid in single shared item refactoring - [x] Ipad landscape add eye icon to show info details list/grid
50 lines
1.4 KiB
Vue
50 lines
1.4 KiB
Vue
<template>
|
|
<div class="h-screen flex justify-center items-center">
|
|
<div>
|
|
<ItemGrid
|
|
v-if="sharedFile"
|
|
:entry="sharedFile"
|
|
:highlight="true"
|
|
:mobile-handler="true"
|
|
/>
|
|
|
|
<ButtonBase @click.native="download" button-style="theme">
|
|
{{ $t('page_shared.download_file') }}
|
|
</ButtonBase>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
|
|
<script>
|
|
import ButtonBase from '/resources/js/components/FilesView/ButtonBase'
|
|
import ItemGrid from "../../components/FilesView/ItemGrid"
|
|
import {mapGetters} from "vuex"
|
|
|
|
export default {
|
|
name: 'SharedSingleItem',
|
|
components: {
|
|
ButtonBase,
|
|
ItemGrid,
|
|
},
|
|
computed: {
|
|
...mapGetters([
|
|
'sharedDetail',
|
|
'sharedFile',
|
|
]),
|
|
},
|
|
methods: {
|
|
download() {
|
|
this.$downloadFile(this.sharedFile.data.attributes.file_url, this.sharedFile.data.attributes.name + '.' + this.sharedFile.data.attributes.mimetype)
|
|
},
|
|
},
|
|
mounted() {
|
|
if (!this.sharedDetail) {
|
|
this.$store.dispatch('getShareDetail', this.$route.params.token).then(() => {
|
|
this.$store.dispatch('getSingleFile')
|
|
})
|
|
} else {
|
|
this.$store.dispatch('getSingleFile')
|
|
}
|
|
}
|
|
}
|
|
</script> |