From de07f4922b01f88f0096f8f24d5d942bde50c2d7 Mon Sep 17 00:00:00 2001 From: Eric Le Ponner <91124272+ericleponner@users.noreply.github.com> Date: Mon, 8 Apr 2024 18:38:45 +0200 Subject: [PATCH] chore: upgrading @kanuto/ns to 0.14.2 (#963) Signed-off-by: Eric Le Ponner --- package-lock.json | 8 +++---- package.json | 2 +- .../allowances/ApproveAllowanceSection.vue | 24 ++++++++++++------- 3 files changed, 21 insertions(+), 13 deletions(-) diff --git a/package-lock.json b/package-lock.json index 408b29538..f2760d315 100644 --- a/package-lock.json +++ b/package-lock.json @@ -17,7 +17,7 @@ "@hashgraph/proto": "^2.13.0", "@hashgraph/sdk": "^2.43.0", "@hedera-name-service/hns-resolution-sdk": "^2.0.11", - "@kabuto-sh/ns": "^0.13.2", + "@kabuto-sh/ns": "^0.14.2", "@metamask/providers": "^14.0.2", "@oruga-ui/oruga-next": "^0.7.0", "@vuepic/vue-datepicker": "^8.4.0", @@ -3607,9 +3607,9 @@ } }, "node_modules/@kabuto-sh/ns": { - "version": "0.13.2", - "resolved": "https://registry.npmjs.org/@kabuto-sh/ns/-/ns-0.13.2.tgz", - "integrity": "sha512-LRSEFa5PVKj+I/DEWpZBIcuMS/yheMnYl8ebaztWtjJTBfxfkIecNrgNMtTiD8JmHvo1uR1EMDj2RQvaIzbR6w==", + "version": "0.14.2", + "resolved": "https://registry.npmjs.org/@kabuto-sh/ns/-/ns-0.14.2.tgz", + "integrity": "sha512-q2pMaraDVnW3FV3OFPE2WwHepQ2xRErsKKcKEJTv9dT9rLmK78GNCnBF5oxwEp7SM5ZECjZ0VKql/UMn9dhRXg==", "dependencies": { "axios": "^1.5.1", "bignumber.js": "^9.1.2", diff --git a/package.json b/package.json index a5f5f949d..f70005cb9 100644 --- a/package.json +++ b/package.json @@ -29,7 +29,7 @@ "@hashgraph/proto": "^2.13.0", "@hashgraph/sdk": "^2.43.0", "@hedera-name-service/hns-resolution-sdk": "^2.0.11", - "@kabuto-sh/ns": "^0.13.2", + "@kabuto-sh/ns": "^0.14.2", "@metamask/providers": "^14.0.2", "@oruga-ui/oruga-next": "^0.7.0", "@vuepic/vue-datepicker": "^8.4.0", diff --git a/src/components/allowances/ApproveAllowanceSection.vue b/src/components/allowances/ApproveAllowanceSection.vue index e2d5a17c1..48758d6e2 100644 --- a/src/components/allowances/ApproveAllowanceSection.vue +++ b/src/components/allowances/ApproveAllowanceSection.vue @@ -151,17 +151,25 @@ export default defineComponent({ } const editHbarAllowance = (allowance: CryptoAllowance) => { - console.log("Edit Hbar Allowance: " + JSON.stringify(allowance)) - currentHbarAllowance.value = allowance - currentTokenAllowance.value = null - showApproveAllowanceDialog.value = true + // console.log("Edit Hbar Allowance: " + JSON.stringify(allowance)) + if (walletManager.isHederaWallet.value) { + currentHbarAllowance.value = allowance + currentTokenAllowance.value = null + showApproveAllowanceDialog.value = true + } else { + notWithMetamaskDialogVisible.value = true + } } const editTokenAllowance = (allowance: TokenAllowance) => { - console.log("Edit Token Allowance: " + JSON.stringify(allowance)) - currentHbarAllowance.value = null - currentTokenAllowance.value = allowance - showApproveAllowanceDialog.value = true + // console.log("Edit Token Allowance: " + JSON.stringify(allowance)) + if (walletManager.isHederaWallet.value) { + currentHbarAllowance.value = null + currentTokenAllowance.value = allowance + showApproveAllowanceDialog.value = true + } else { + notWithMetamaskDialogVisible.value = true + } } const cleanUpRouteQuery = async () => {