Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

hotfix: merge the hotfix to main #1257

Merged
merged 11 commits into from
Apr 8, 2024
6 changes: 5 additions & 1 deletion src/components/bridge/ethereum/L1Bridge.vue
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@
<span class="color--white"> {{ $t(errMsg) }}</span>
</div>

<div v-if="fromChainName === EthBridgeNetworkName.AstarZk" class="row--box-error">
<div v-if="isWarningHighTraffic" class="row--box-error">
<span class="color--white">
{{ $t('bridge.warningHighTraffic') }}
<a class="color--white text-underline" @click="setHighTrafficModalOpen(true)">
Expand Down Expand Up @@ -278,6 +278,9 @@ export default defineComponent({
const isLoading = computed<boolean>(() => store.getters['general/isLoading']);
const isEnabledWithdrawal = computed<boolean>(() => true);
const isHighTrafficModalOpen = ref<boolean>(false);
const isWarningHighTraffic = computed<boolean>(
() => props.fromChainName === EthBridgeNetworkName.AstarZk
);

const setHighTrafficModalOpen = (value: boolean): void => {
isHighTrafficModalOpen.value = value;
Expand Down Expand Up @@ -331,6 +334,7 @@ export default defineComponent({
approve,
isHighTrafficModalOpen,
setHighTrafficModalOpen,
isWarningHighTraffic,
};
},
});
Expand Down
Loading