Skip to content

Commit

Permalink
chore: update notice message to reflect PoS mainnet status
Browse files Browse the repository at this point in the history
  • Loading branch information
onmax committed Nov 25, 2024
1 parent a325d9b commit c3433bc
Showing 1 changed file with 20 additions and 1 deletion.
21 changes: 20 additions & 1 deletion src/App.vue
Original file line number Diff line number Diff line change
@@ -1,7 +1,15 @@
<template>
<div id="app" :class="{'consensus-stalled': consensus === 'stalled'}">
<div v-if="consensus === 'stalled'" class="red-notice">
The PoS testnet is temporarily not processing transactions or staking rewards, thank you for your patience.
<template v-if="isMainnet">
A network issue occurred, please stand by. Click
<a href="https://x.com/nimiq/status/1860886491292913679" target="_blank">
here</a> for updates.
</template>
<template v-else>
The PoS testnet is temporarily not processing transactions or staking rewards,
thank you for your patience.
</template>
</div>
<main :class="activeMobileColumn" ref="$main">
<Sidebar/>
Expand Down Expand Up @@ -40,12 +48,17 @@ import { useWindowSize } from './composables/useWindowSize';
import { useActiveMobileColumn } from './composables/useActiveMobileColumn';
import { useSwipes } from './composables/useSwipes';
import { useNetworkStore } from './stores/Network';
import { useConfig } from './composables/useConfig';
import { ENV_MAIN, ENV_TEST } from './lib/Constants';
export default defineComponent({
name: 'app',
setup(props, context) {
provideRouter(router);
const { config } = useConfig();
const isMainnet = config.environment === ENV_TEST;
const { activeMobileColumn } = useActiveMobileColumn();
const { accountInfos } = useAccountStore();
Expand Down Expand Up @@ -148,6 +161,7 @@ export default defineComponent({
const { consensus } = useNetworkStore();
return {
isMainnet,
activeMobileColumn,
hasAccounts,
main$,
Expand Down Expand Up @@ -373,6 +387,11 @@ export default defineComponent({
font-size: var(--body-size);
text-align: center;
padding: 1rem;
a {
font-weight: 600;
color: white;
}
}
#app.consensus-stalled {
Expand Down

0 comments on commit c3433bc

Please sign in to comment.