File tree Expand file tree Collapse file tree 1 file changed +16
-8
lines changed
dashboard/src/components/rmrk/Gallery Expand file tree Collapse file tree 1 file changed +16
-8
lines changed Original file line number Diff line number Diff line change 1
1
<template >
2
2
<div >
3
- <b-loading is-full-page v-model =" isLoading" :can-cancel =" true" ></b-loading >
4
3
<!-- <b-field label="Owners">
5
4
<b-select
6
5
placeholder="Select an owner"
22
21
<div class =" card nft-card" >
23
22
<router-link :to =" { name: 'nftDetail', params: { id: nft.id }}" tag =" div" class =" nft-card__skeleton" >
24
23
<div class =" card-image" v-if =" nft.image" >
24
+ <b-skeleton
25
+ height =" 240px"
26
+ :active =" isLoading" >
27
+ </b-skeleton >
25
28
<b-image
29
+ v-if =" !isLoading"
26
30
:src =" nft.image"
27
31
:src-fallback =" require('@/utils/placeholder.png')"
28
32
alt =" Simple image"
39
43
</div >
40
44
41
45
<div class =" card-content" >
42
- <p class =" title is-4" >
43
- <router-link :to =" { name: 'nftDetail', params: { id: nft.id }}" >{{ nft.name }}</router-link ></p >
44
- <!-- <p class="subtitle is-6">{{ nft.collection }}</p> -->
46
+ <p
47
+ v-if =" !isLoading"
48
+ class =" title is-4" >
49
+ <router-link :to =" { name: 'nftDetail', params: { id: nft.id }}" >
50
+ {{ nft.name }}
51
+ </router-link >
52
+ </p >
53
+ <b-skeleton
54
+ :active =" isLoading" >
55
+ </b-skeleton >
45
56
</div >
46
57
</router-link >
47
58
</div >
@@ -64,8 +75,7 @@ const nftSort = (a: any, b: any) => b._mod - a._mod
64
75
@Component ({})
65
76
export default class Gallery extends Vue {
66
77
private nfts: NFTType [] = [];
67
-
68
- private isLoading: boolean = false ;
78
+ private isLoading: boolean = true ;
69
79
70
80
public async mounted() {
71
81
const rmrkService = getInstance ();
@@ -74,8 +84,6 @@ export default class Gallery extends Vue {
74
84
return ;
75
85
}
76
86
77
- this .isLoading = true ;
78
-
79
87
try {
80
88
this .nfts = await rmrkService .getAllNFTs ().then (arr => arr .slice ().sort (nftSort ));
81
89
this .collectionMeta ();
You can’t perform that action at this time.
0 commit comments