Skip to content

Commit

Permalink
update chainApi props (#1468)
Browse files Browse the repository at this point in the history
  • Loading branch information
Nikita-Polyakov authored Jul 17, 2024
1 parent dcecc2e commit ed756d7
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
</notification-enabling-page>
<alerts />
<confirm-dialog
:get-api="getApi"
:chain-api="chainApi"
:account="account"
:visibility="isSignTxDialogVisible"
:set-visibility="setSignTxDialogVisibility"
Expand Down Expand Up @@ -314,7 +314,7 @@ export default class App extends Mixins(mixins.TransactionMixin, NodeErrorMixin)
this.setBrowserNotifsPopupBlocked(value);
}
getApi() {
get chainApi() {
return api;
}
Expand Down
4 changes: 2 additions & 2 deletions src/components/pages/Bridge/SelectSubAccount.vue
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<template>
<dialog-base :visible.sync="visibility" :show-close-button="false" class="account-select-dialog">
<connection-view
:get-api="getApi"
:chain-api="chainApi"
:account="subAccount"
:login-account="login"
:logout-account="logout"
Expand Down Expand Up @@ -47,7 +47,7 @@ export default class BridgeSelectSubAccount extends Mixins(TranslationMixin) {
this.setSubAccountDialogVisibility(flag);
}
getApi() {
get chainApi() {
return this.subBridgeConnector.accountApi;
}
Expand Down
4 changes: 2 additions & 2 deletions src/components/shared/Dialog/SelectSoraAccount.vue
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<template>
<dialog-base :visible.sync="visibility" :show-close-button="false" class="account-select-dialog">
<connection-view
:get-api="getApi"
:chain-api="chainApi"
:account="soraAccount"
:login-account="login"
:logout-account="logout"
Expand Down Expand Up @@ -36,7 +36,7 @@ export default class SelectSoraAccountDialog extends Mixins(TranslationMixin) {
@action.wallet.account.logout public logout!: (forgetAddress?: string) => Promise<void>;
@action.wallet.account.renameAccount public rename!: (data: { address: string; name: string }) => Promise<void>;
getApi() {
get chainApi() {
return api;
}
Expand Down
4 changes: 2 additions & 2 deletions src/views/BridgeContainer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
v-on="$listeners"
/>
<confirm-dialog
:get-api="getApi"
:chain-api="chainApi"
:account="subAccount"
:visibility="isSignTxDialogVisible"
:set-visibility="setSignTxDialogVisibility"
Expand Down Expand Up @@ -49,7 +49,7 @@ export default class BridgeContainer extends Mixins(mixins.LoadingMixin, WalletC
@state.bridge.isSignTxDialogVisible public isSignTxDialogVisible!: boolean;
@mutation.bridge.setSignTxDialogVisibility public setSignTxDialogVisibility!: (flag: boolean) => void;
getApi() {
get chainApi() {
return this.subBridgeConnector.accountApi;
}
Expand Down

0 comments on commit ed756d7

Please sign in to comment.