Преглед изворни кода

:wastebasket: reverted frontend changes

tags/0.0.3^2
juancarbajal98 пре 3 година
родитељ
комит
b82d195142
2 измењених фајлова са 3 додато и 21 уклоњено
  1. 1
    17
      frontend/src/entities/card/card.js
  2. 2
    4
      frontend/src/views/ProfileView.vue

+ 1
- 17
frontend/src/entities/card/card.js Прегледај датотеку

@@ -150,20 +150,4 @@ const makeCardFromProfile = profile => {
150 150
     }
151 151
     return c
152 152
 }
153
-
154
-const makePlaceholderCard = () => {
155
-    const c = new Card({
156
-        pid: 0,
157
-        name: 'test name',
158
-        email: 'test@email.com',
159
-        role: 'participant'
160
-    })
161
-
162
-    c.presence = 'remote'
163
-    c.urgency = 'actively_looking'
164
-    c.pronouns = 'he/him'
165
-    c.ethnicity = ''
166
-    c.locale = 'Los Angeles, CA'
167
-    c.email = 'test@email.com'
168
-}
169
-export { Card, makeCardFromProfile, makePlaceholderCard, cardAspects }
153
+export { Card, makeCardFromProfile, cardAspects }

+ 2
- 4
frontend/src/views/ProfileView.vue Прегледај датотеку

@@ -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
     },

Loading…
Откажи
Сачувај