|
|
@@ -5,7 +5,7 @@ main.view--profile
|
|
5
|
5
|
ProfileCard(
|
|
6
|
6
|
:aspects='card.aspects'
|
|
7
|
7
|
:is-list='false'
|
|
8
|
|
- :card='placeholderCard'
|
|
|
8
|
+ :card='card'
|
|
9
|
9
|
)
|
|
10
|
10
|
w-spinner(v-else bounce)
|
|
11
|
11
|
|
|
|
@@ -15,7 +15,7 @@ main.view--profile
|
|
15
|
15
|
<script>
|
|
16
|
16
|
import ProfileCard from '../components/ProfileCard.vue'
|
|
17
|
17
|
import { fetchProfileByProfileId } from '../services'
|
|
18
|
|
-import { makeCardFromProfile, makePlaceholderCard } from '../entities'
|
|
|
18
|
+import { makeCardFromProfile } from '../entities'
|
|
19
|
19
|
|
|
20
|
20
|
export default {
|
|
21
|
21
|
name: 'ProfileView',
|
|
|
@@ -24,7 +24,6 @@ export default {
|
|
24
|
24
|
loading: true,
|
|
25
|
25
|
profile: {},
|
|
26
|
26
|
card: {},
|
|
27
|
|
- placeholderCard: {},
|
|
28
|
27
|
}),
|
|
29
|
28
|
created() {
|
|
30
|
29
|
this.getProfile()
|
|
|
@@ -40,7 +39,6 @@ export default {
|
|
40
|
39
|
console.error(err)
|
|
41
|
40
|
}
|
|
42
|
41
|
this.card = makeCardFromProfile(this.profile)
|
|
43
|
|
- this.placeholderCard = makePlaceholderCard()
|
|
44
|
42
|
this.loading = false
|
|
45
|
43
|
},
|
|
46
|
44
|
},
|