Browse Source

Updated Listing Fee Feedback

master
30117125 4 years ago
parent
commit
f345cabc85
1 changed files with 14 additions and 4 deletions
  1. 14
    4
      src/components/admin/fees/listingFee.vue

+ 14
- 4
src/components/admin/fees/listingFee.vue View File

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

Loading…
Cancel
Save