File tree Expand file tree Collapse file tree 2 files changed +17
-0
lines changed Expand file tree Collapse file tree 2 files changed +17
-0
lines changed Original file line number Diff line number Diff line change 34
34
class =" pt-2"
35
35
/>
36
36
</template >
37
+ <a :href =" `https://dotscanner.com/Kusama/account/${address}`" target =" _blank" rel =" noopener noreferrer" class =" is-flex is-align-items-center pt-2" >
38
+ <figure class =" image is-24x24 mr-2" >
39
+ <img alt =" dotscanner" src =" /dotscanner.svg" />
40
+ </figure >
41
+ {{ shortendId }}
42
+ </a >
37
43
</div >
38
44
</template >
39
45
40
46
<script lang="ts" >
41
47
import { Component , Prop , mixins } from ' nuxt-property-decorator'
42
48
import InlineMixin from ' @/utils/mixins/inlineMixin'
43
49
import PrefixMixin from ' @/utils/mixins/prefixMixin'
50
+ import shortAddress from ' @/utils/shortAddress'
44
51
45
52
const components = {
46
53
Identity : () => import (' @/components/shared/format/Identity.vue' ),
@@ -51,6 +58,7 @@ const components = {
51
58
export default class ProfileLink extends mixins (InlineMixin , PrefixMixin ) {
52
59
@Prop () public address! : string
53
60
@Prop (Boolean ) public showTwitter! : boolean
61
+ public shortendId = shortAddress (this .address )
54
62
}
55
63
</script >
56
64
You can’t perform that action at this time.
0 commit comments