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>
|
<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,
|
||||||
|
|
Loading…
Reference in a new issue