@designcrowd/fe-shared-lib 1.1.3-kp-6 → 1.1.3-kp-8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -27,7 +27,7 @@ const getPaymentConfigsByBrandPageToken = async (brandPageToken) => {
|
|
|
27
27
|
const deletePaymentConfigByBrandPageTokenAndConfigId = async (brandPageToken, paymentConfigId) => {
|
|
28
28
|
try {
|
|
29
29
|
const response = await getAxios().delete(`/maker/api/brand-pages/${brandPageToken}/payment-configs`, {
|
|
30
|
-
data: { paymentConfigId },
|
|
30
|
+
data: { PaymentConfigId: paymentConfigId },
|
|
31
31
|
});
|
|
32
32
|
|
|
33
33
|
if (response.status === 200) {
|
|
@@ -54,7 +54,7 @@ export default {
|
|
|
54
54
|
Button,
|
|
55
55
|
Loader,
|
|
56
56
|
},
|
|
57
|
-
emits: ['close-modal'],
|
|
57
|
+
emits: ['close-modal', 'on-load'],
|
|
58
58
|
props: {
|
|
59
59
|
paymentConfig: {
|
|
60
60
|
type: Object,
|
|
@@ -75,7 +75,6 @@ export default {
|
|
|
75
75
|
},
|
|
76
76
|
|
|
77
77
|
async onConfirmDelete() {
|
|
78
|
-
debugger;
|
|
79
78
|
const paymentConfigId = this.paymentConfig.id;
|
|
80
79
|
if (!this.brandPageToken) {
|
|
81
80
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -56,6 +56,7 @@
|
|
|
56
56
|
:payment-config="selectedPaymentConfig"
|
|
57
57
|
:brand-page-token="brandPageToken"
|
|
58
58
|
@close-modal="onCloseModal"
|
|
59
|
+
@on-load="onLoadPaymentConfigs"
|
|
59
60
|
/>
|
|
60
61
|
</template>
|
|
61
62
|
|
|
@@ -76,6 +77,7 @@ export default {
|
|
|
76
77
|
},
|
|
77
78
|
|
|
78
79
|
mixins: [PaymentConfigMixin],
|
|
80
|
+
emits: ['on-load'],
|
|
79
81
|
data() {
|
|
80
82
|
return {
|
|
81
83
|
activeStripeOptionIndex: null,
|
|
@@ -97,12 +99,13 @@ export default {
|
|
|
97
99
|
},
|
|
98
100
|
|
|
99
101
|
onClickOutsideStripeOptions() {
|
|
100
|
-
debugger;
|
|
101
102
|
this.activeStripeOptionIndex = null;
|
|
102
103
|
},
|
|
103
104
|
onLoadPaymentConfigs(paymentConfigId) {
|
|
104
105
|
this.showDeleteConfirmationModal = false;
|
|
105
|
-
|
|
106
|
+
console.log(this.paymentConfigs, 'before');
|
|
107
|
+
this.paymentConfigs = this.paymentConfigs.filter((p) => p.id !== paymentConfigId);
|
|
108
|
+
console.log(this.paymentConfigs, 'after');
|
|
106
109
|
this.$emit('on-load', this.paymentConfigs);
|
|
107
110
|
},
|
|
108
111
|
},
|