|
|
|
|
@ -50,6 +50,10 @@
|
|
|
|
|
:aria-label="t('files', 'Favorite')">
|
|
|
|
|
<FavoriteIcon v-once />
|
|
|
|
|
</span>
|
|
|
|
|
|
|
|
|
|
<OverlayIcon :is="fileOverlay"
|
|
|
|
|
v-if="fileOverlay"
|
|
|
|
|
class="files-list__row-icon-overlay" />
|
|
|
|
|
</span>
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
@ -71,9 +75,11 @@ import KeyIcon from 'vue-material-design-icons/Key.vue'
|
|
|
|
|
import LinkIcon from 'vue-material-design-icons/Link.vue'
|
|
|
|
|
import NetworkIcon from 'vue-material-design-icons/Network.vue'
|
|
|
|
|
import TagIcon from 'vue-material-design-icons/Tag.vue'
|
|
|
|
|
import PlayCircleIcon from 'vue-material-design-icons/PlayCircle.vue'
|
|
|
|
|
|
|
|
|
|
import { useUserConfigStore } from '../../store/userconfig.ts'
|
|
|
|
|
import FavoriteIcon from './FavoriteIcon.vue'
|
|
|
|
|
import { isLivePhoto } from '../../services/LivePhotos'
|
|
|
|
|
|
|
|
|
|
export default Vue.extend({
|
|
|
|
|
name: 'FileEntryPreview',
|
|
|
|
|
@ -163,6 +169,14 @@ export default Vue.extend({
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
fileOverlay() {
|
|
|
|
|
if (isLivePhoto(this.source)) {
|
|
|
|
|
return PlayCircleIcon
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return null
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
folderOverlay() {
|
|
|
|
|
if (this.source.type !== FileType.Folder) {
|
|
|
|
|
return null
|
|
|
|
|
|