|
@@ -1,6 +1,11 @@
|
1
|
1
|
<template>
|
2
|
2
|
<section id="content">
|
|
3
|
+ <div v-if="updated">
|
|
4
|
+ <alert :text="'The listing fee has been updated!!'" :type="'SUCCESS'" />
|
|
5
|
+ </div>
|
|
6
|
+
|
3
|
7
|
<label for="fee" class="uniLabel">LISTING FEE</label>
|
|
8
|
+
|
4
|
9
|
<currency-input
|
5
|
10
|
onClick="this.setSelectionRange(0, this.value.length)"
|
6
|
11
|
name="fee"
|
|
@@ -17,10 +22,15 @@
|
17
|
22
|
<script>
|
18
|
23
|
/* eslint-disable */
|
19
|
24
|
import { mapActions, mapGetters, mapState } from "vuex";
|
|
25
|
+import alert from "../../shared/alert";
|
20
|
26
|
export default {
|
|
27
|
+ components: {
|
|
28
|
+ alert
|
|
29
|
+ },
|
21
|
30
|
data() {
|
22
|
31
|
return {
|
23
|
|
- fee: 0.0
|
|
32
|
+ fee: 0.0,
|
|
33
|
+ updated: false
|
24
|
34
|
};
|
25
|
35
|
},
|
26
|
36
|
mounted() {
|
|
@@ -33,13 +43,13 @@ export default {
|
33
|
43
|
amount: parseFloat(this.fee),
|
34
|
44
|
name: "Listing Fee"
|
35
|
45
|
};
|
36
|
|
-
|
37
|
46
|
this.setListingFee(feeObj);
|
|
47
|
+ setTimeout(() => {
|
|
48
|
+ this.updated = true;
|
|
49
|
+ }, 200);
|
38
|
50
|
},
|
39
|
51
|
async pullListingFee() {
|
40
|
52
|
await this.retrieveListingFee();
|
41
|
|
- console.log(this.getListingFee);
|
42
|
|
-
|
43
|
53
|
this.fee = this.getListingFee.amount;
|
44
|
54
|
}
|
45
|
55
|
},
|