forked from platypush/platypush
Show prettified entity type when hover the entity icon.
This commit is contained in:
parent
7906ee2c49
commit
de84a65a22
1 changed files with 3 additions and 0 deletions
|
@ -1,6 +1,7 @@
|
|||
<template>
|
||||
<div class="entity-icon-container"
|
||||
:class="{'with-color-fill': !!colorFill}"
|
||||
:title="prettify(entity.type || '')"
|
||||
:style="colorFillStyle">
|
||||
<i class="fas fa-spinner fa-spin-pulse loading" v-if="loading" />
|
||||
<i class="fas fa-circle-exclamation error" v-else-if="error" />
|
||||
|
@ -10,10 +11,12 @@
|
|||
|
||||
<script>
|
||||
import Icon from "@/components/elements/Icon";
|
||||
import Utils from "@/Utils"
|
||||
|
||||
export default {
|
||||
name: "EntityIcon",
|
||||
components: {Icon},
|
||||
mixins: [Utils],
|
||||
props: {
|
||||
loading: {
|
||||
type: Boolean,
|
||||
|
|
Loading…
Reference in a new issue