|
|
@@ -1,16 +1,19 @@
|
|
1
|
1
|
<template lang="pug">
|
|
2
|
|
-main(class="view--home" style="display:flex; flex-direction:row; gap: 40px")
|
|
3
|
|
- div
|
|
|
2
|
+main.view--home(style="display:flex; flex-direction:column; gap: 40px")
|
|
|
3
|
+ div.view--nav(style="display: flex; justify-content: space-between;")
|
|
4
|
4
|
header
|
|
5
|
5
|
h2 home - profile: {{ pid }}
|
|
|
6
|
+ w-drawer(v-model="openDrawer")
|
|
|
7
|
+ w-button(@click="openDrawer = true" outline="")
|
|
|
8
|
+ | Active Chats
|
|
6
|
9
|
|
|
7
|
|
- article(v-if="cards.length && !loading")
|
|
8
|
|
- ProfileCardList(:profiles="cards" :pid="pid" @reload="getCards")
|
|
9
|
|
-
|
|
10
|
|
- p(v-else) Loading...
|
|
|
10
|
+ h2 Match Queue
|
|
|
11
|
+ article(v-if="cards.length && !loading")
|
|
|
12
|
+ ProfileCardList(:profiles="cards" :pid="pid" @reload="getCards")
|
|
11
|
13
|
|
|
12
|
|
- MainNav(@show-sidebar="$emit('show-sidebar')")
|
|
|
14
|
+ p(v-else) Loading...
|
|
13
|
15
|
|
|
|
16
|
+ h2 Matches
|
|
14
|
17
|
article(v-if="matches.length && !loading")
|
|
15
|
18
|
ProfileCardList(:profiles="matches" :pid="pid" @reload="getCards")
|
|
16
|
19
|
|
|
|
@@ -59,6 +62,9 @@ export default {
|
|
59
|
62
|
name: 'HomeView',
|
|
60
|
63
|
components: { ProfileCardList },
|
|
61
|
64
|
mixins: [mixins.pidMixin, mixins.cardMixin],
|
|
|
65
|
+ data: () => ({
|
|
|
66
|
+ openDrawer: false,
|
|
|
67
|
+ }),
|
|
62
|
68
|
methods: {
|
|
63
|
69
|
/** Gets called from cardMixin */
|
|
64
|
70
|
async getCards() {
|