@unsource/ui 2.8.25 → 2.8.27
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/dist/module.json
CHANGED
|
@@ -1,3 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
import type { Wallet } from '../types/models.js';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
wallet: Wallet;
|
|
4
|
+
};
|
|
5
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, any, string, import("vue").PublicProps, any, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
2
6
|
declare const _default: typeof __VLS_export;
|
|
3
7
|
export default _default;
|
|
@@ -48,9 +48,10 @@ import {
|
|
|
48
48
|
watch
|
|
49
49
|
} from "#imports";
|
|
50
50
|
const emit = defineEmits(["close"]);
|
|
51
|
-
const
|
|
51
|
+
const { wallet } = defineProps({
|
|
52
|
+
wallet: { type: Object, required: true }
|
|
53
|
+
});
|
|
52
54
|
const amount = ref("0");
|
|
53
|
-
const wallet = computed(() => wallets.value.find((e) => e.coin.unit === "wallet"));
|
|
54
55
|
const schema = ref();
|
|
55
56
|
const { $toast } = useNuxtApp();
|
|
56
57
|
const loading = ref(false);
|
|
@@ -81,8 +82,8 @@ const submit = async () => {
|
|
|
81
82
|
loading.value = true;
|
|
82
83
|
const w = await useWallets(void 0, toUser.value?.id);
|
|
83
84
|
const details = {
|
|
84
|
-
walletId: wallet.
|
|
85
|
-
toWalletId: w.value?.find((e) => e.coin.
|
|
85
|
+
walletId: wallet.id,
|
|
86
|
+
toWalletId: w.value?.find((e) => e.coin.key === "wallet")?.id,
|
|
86
87
|
status: "ACCEPTED",
|
|
87
88
|
type: "TRANSFER",
|
|
88
89
|
redirectUrl: window.urlPrefix + location.href,
|
|
@@ -1,3 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
import type { Wallet } from '../types/models.js';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
wallet: Wallet;
|
|
4
|
+
};
|
|
5
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, any, string, import("vue").PublicProps, any, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
2
6
|
declare const _default: typeof __VLS_export;
|
|
3
7
|
export default _default;
|