linkify type headings

feat/vaults
Tomáš Mládek 2021-06-28 20:44:30 +02:00
parent 5953c733cf
commit 706aba0ffe
1 changed files with 10 additions and 2 deletions

View File

@ -14,8 +14,10 @@
:key="typeAddr"
>
<h3>
<sl-icon v-if="types[typeAddr].icon" :name="types[typeAddr].icon" />
{{ types[typeAddr]?.name || "???" }}
<up-link :to="{ entity: typeAddr }">
<sl-icon v-if="types[typeAddr].icon" :name="types[typeAddr].icon" />
{{ types[typeAddr]?.name || "???" }}
</up-link>
</h3>
<AttributeView
:address="address"
@ -69,6 +71,7 @@ import Address from "@/components/Address.vue";
import AttributeView from "@/components/AttributeView.vue";
import BlobPreview from "@/components/BlobPreview.vue";
import Marquee from "@/components/Marquee.vue";
import UpLink from "@/components/UpLink.vue";
import { query, useEntity } from "@/lib/entity";
import { UpType } from "@/lib/types";
import { IEntry } from "@/types/base";
@ -81,6 +84,7 @@ export default defineComponent({
BlobPreview,
Marquee,
AttributeView,
UpLink,
},
props: {
address: {
@ -236,6 +240,10 @@ export default defineComponent({
margin-bottom: -2px;
}
}
&.typed-attribute-list h3 a {
text-decoration: none;
}
}
.error {