iceshrimp-legacy/src/web/app/common/views/components/file-type-icon.vue

18 lines
302 B
Vue
Raw Normal View History

2018-02-16 12:55:57 +01:00
<template>
2018-03-04 04:14:53 +01:00
<span class="mk-file-type-icon">
2018-02-16 12:55:57 +01:00
<template v-if="kind == 'image'">%fa:file-image%</template>
</span>
</template>
<script lang="ts">
import Vue from 'vue';
export default Vue.extend({
props: ['type'],
computed: {
kind(): string {
return this.type.split('/')[0];
}
}
});
</script>