|
|
@@ -1,23 +1,22 @@
|
|
1
|
1
|
<template lang="pug">
|
|
2
|
2
|
.pairing-button.w-flex.row
|
|
3
|
|
- w-button.xs6.mt4.mb4.pending(@click='pass' bg-color='red' color='white' xl)
|
|
|
3
|
+ w-button(:class='status' v-if='status == "pristine"')(@click='pass')
|
|
4
|
4
|
p.pa4.text-upper pass
|
|
5
|
|
- w-button.xs6.mt4.mb4.pending(
|
|
6
|
|
- @click='pair'
|
|
7
|
|
- bg-color='green'
|
|
8
|
|
- color='mint-green'
|
|
9
|
|
- xl
|
|
10
|
|
- )
|
|
|
5
|
+ w-button(:class='status' v-if='status == "pristine"')(@click='pair')
|
|
11
|
6
|
p.pa4.text-upper pair
|
|
12
|
|
- w-button.xs12.pristine
|
|
13
|
|
- p siimee
|
|
|
7
|
+ w-button(:class='status' v-if='status == "pending"')
|
|
|
8
|
+ p.pa4.text-upper pending
|
|
|
9
|
+ w-button(:class='status' v-if='status == "paired"')
|
|
|
10
|
+ p.pa4.text-upper paired
|
|
14
|
11
|
</template>
|
|
15
|
12
|
|
|
16
|
13
|
<script>
|
|
17
|
14
|
export default {
|
|
18
|
15
|
props: {},
|
|
19
|
16
|
emits: ['pair', 'pass'],
|
|
20
|
|
- data: () => ({}),
|
|
|
17
|
+ data: () => ({
|
|
|
18
|
+ status: 'pristine',
|
|
|
19
|
+ }),
|
|
21
|
20
|
methods: {
|
|
22
|
21
|
pair() {
|
|
23
|
22
|
this.$emit('pair')
|
|
|
@@ -37,8 +36,8 @@ export default {
|
|
37
|
36
|
&.pristine
|
|
38
|
37
|
background-color: #000
|
|
39
|
38
|
border: 2px solid #4D9127
|
|
40
|
|
- min-width: 350px
|
|
41
|
|
- width: 100%
|
|
|
39
|
+ max-width: 350px
|
|
|
40
|
+ width: 50%
|
|
42
|
41
|
margin: 11px 0
|
|
43
|
42
|
padding: 22px
|
|
44
|
43
|
&.pending
|