backports murph-skeleton
This commit is contained in:
parent
854aebde14
commit
28ef75d179
|
@ -6,6 +6,9 @@
|
|||
</template>
|
||||
|
||||
<style scoped>
|
||||
img {
|
||||
max-width: 120px;
|
||||
}
|
||||
</style>
|
||||
|
||||
<script>
|
||||
|
@ -45,6 +48,11 @@ export default {
|
|||
this.icon = 'fa fa-file'
|
||||
},
|
||||
defineThumbnail () {
|
||||
if (['image/svg', 'image/svg+xml'].indexOf(this.mime) !== -1) {
|
||||
this.thumbnail = '/' + this.path
|
||||
return
|
||||
}
|
||||
|
||||
if (['image/png', 'image/jpg', 'image/jpeg', 'image/gif'].indexOf(this.mime) === -1) {
|
||||
return
|
||||
}
|
||||
|
|
|
@ -188,3 +188,4 @@
|
|||
"New directory": "Nouveau répertoire"
|
||||
"Preview": "Aperçu"
|
||||
"Insert": "Insérer"
|
||||
"Attributes": "Attributs"
|
||||
|
|
Loading…
Reference in a new issue