Skip to content

Commit a9913a3

Browse files
authored
Merge pull request #1703 from prachi00/feat-dotscanner-profile
#1029 Put dotscanner in profile
2 parents 09fd5a2 + be5cdea commit a9913a3

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed

components/rmrk/Profile/ProfileLink.vue

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,13 +34,20 @@
3434
class="pt-2"
3535
/>
3636
</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>
3743
</div>
3844
</template>
3945

4046
<script lang="ts" >
4147
import { Component, Prop, mixins } from 'nuxt-property-decorator'
4248
import InlineMixin from '@/utils/mixins/inlineMixin'
4349
import PrefixMixin from '@/utils/mixins/prefixMixin'
50+
import shortAddress from '@/utils/shortAddress'
4451
4552
const components = {
4653
Identity: () => import('@/components/shared/format/Identity.vue'),
@@ -51,6 +58,7 @@ const components = {
5158
export default class ProfileLink extends mixins(InlineMixin, PrefixMixin) {
5259
@Prop() public address!: string
5360
@Prop(Boolean) public showTwitter!: boolean
61+
public shortendId = shortAddress(this.address)
5462
}
5563
</script>
5664

static/dotscanner.svg

Lines changed: 9 additions & 0 deletions
Loading

0 commit comments

Comments
 (0)