Skip to content

Commit

Permalink
Fixed #422 - My Task File Download Issue
Browse files Browse the repository at this point in the history
  • Loading branch information
ManiruzzamanAkash committed Oct 1, 2021
1 parent 94a293c commit d6400d9
Showing 1 changed file with 3 additions and 20 deletions.
23 changes: 3 additions & 20 deletions views/assets/src/components/common/pm-file.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
<template>

<div class="pm-file">
<a v-if="isVideo" v-pm-pretty-photo class="pm-colorbox-img pm-video" :href="file.url + '?iframe=true'" :title="file.name" target="_blank" rel="prettyPhoto">
<img class="pm-content-img-size" :src="file.thumb" :alt="file.name" :title="file.name">
Expand All @@ -19,7 +18,6 @@
<img v-if="!file.absoluteUrl" class="pm-content-img-size" :src="file.thumb" :alt="file.name" :title="file.name">
</a>
</div>

</template>


Expand All @@ -31,11 +29,7 @@ export default {
type: Object,
}
},
data() {
return {
}
},
computed: {
isPrettyPhoto () {
var photo = [];
Expand All @@ -51,7 +45,7 @@ export default {
return false;
}
},
isVideo () {
if (typeof this.file.mime_type !== 'undefined' ) {
return this.file.mime_type.split("/").indexOf('video') !== -1;
Expand All @@ -75,23 +69,12 @@ export default {
},
projectId () {
if ( this.file.fileable ) {
return this.file.fileable.project_id;
if ( this.file.fileable_id ) {
return this.file.fileable_id;
}
return this.project_id;
}
},
methods: {
check(){
//console.log(this.file.mime_type);
}
}
}
</script>


<style lang="css">
</style>

0 comments on commit d6400d9

Please sign in to comment.