Show prettified entity type when hover the entity icon.

This commit is contained in:
Fabio Manganiello 2023-05-01 01:20:31 +02:00
parent 7906ee2c49
commit de84a65a22
Signed by: blacklight
GPG Key ID: D90FBA7F76362774
1 changed files with 3 additions and 0 deletions

View File

@ -1,6 +1,7 @@
<template> <template>
<div class="entity-icon-container" <div class="entity-icon-container"
:class="{'with-color-fill': !!colorFill}" :class="{'with-color-fill': !!colorFill}"
:title="prettify(entity.type || '')"
:style="colorFillStyle"> :style="colorFillStyle">
<i class="fas fa-spinner fa-spin-pulse loading" v-if="loading" /> <i class="fas fa-spinner fa-spin-pulse loading" v-if="loading" />
<i class="fas fa-circle-exclamation error" v-else-if="error" /> <i class="fas fa-circle-exclamation error" v-else-if="error" />
@ -10,10 +11,12 @@
<script> <script>
import Icon from "@/components/elements/Icon"; import Icon from "@/components/elements/Icon";
import Utils from "@/Utils"
export default { export default {
name: "EntityIcon", name: "EntityIcon",
components: {Icon}, components: {Icon},
mixins: [Utils],
props: { props: {
loading: { loading: {
type: Boolean, type: Boolean,