show pending operations on main pages
This commit is contained in:
parent
ddfb40e50c
commit
e89821a6c7
@ -34,7 +34,7 @@
|
|||||||
<iframe
|
<iframe
|
||||||
id="wallet-window"
|
id="wallet-window"
|
||||||
name="wallet"
|
name="wallet"
|
||||||
src="about:blank"
|
src="/wallet.html"
|
||||||
name="wallet"
|
name="wallet"
|
||||||
width="800"
|
width="800"
|
||||||
height="100%"
|
height="100%"
|
||||||
|
@ -62,7 +62,7 @@ const api: PlatformAPI = ({
|
|||||||
},
|
},
|
||||||
|
|
||||||
registerAllIncomingConnections: () => undefined,
|
registerAllIncomingConnections: () => undefined,
|
||||||
registerOnInstalled: (fn: () => void) => fn(),
|
registerOnInstalled: (fn: () => void) => undefined,
|
||||||
registerReloadOnNewVersion: () => undefined,
|
registerReloadOnNewVersion: () => undefined,
|
||||||
registerTalerHeaderListener: () => undefined,
|
registerTalerHeaderListener: () => undefined,
|
||||||
|
|
||||||
|
@ -83,19 +83,21 @@ export function Application(): VNode {
|
|||||||
<Fragment>
|
<Fragment>
|
||||||
<LogoHeader />
|
<LogoHeader />
|
||||||
<WalletNavBar path={path} />
|
<WalletNavBar path={path} />
|
||||||
<div
|
{shouldShowPendingOperations(path) && (
|
||||||
style={{
|
<div
|
||||||
backgroundColor: "lightcyan",
|
style={{
|
||||||
display: "flex",
|
backgroundColor: "lightcyan",
|
||||||
justifyContent: "center",
|
display: "flex",
|
||||||
}}
|
justifyContent: "center",
|
||||||
>
|
}}
|
||||||
<PendingTransactions
|
>
|
||||||
goToTransaction={(txId: string) =>
|
<PendingTransactions
|
||||||
route(Pages.balance_transaction.replace(":tid", txId))
|
goToTransaction={(txId: string) =>
|
||||||
}
|
route(Pages.balance_transaction.replace(":tid", txId))
|
||||||
/>
|
}
|
||||||
</div>
|
/>
|
||||||
|
</div>
|
||||||
|
)}
|
||||||
</Fragment>
|
</Fragment>
|
||||||
);
|
);
|
||||||
}}
|
}}
|
||||||
@ -261,3 +263,7 @@ function Redirect({ to }: { to: string }): null {
|
|||||||
});
|
});
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function shouldShowPendingOperations(path: string): boolean {
|
||||||
|
return ["/balance/history/", "/dev", "/settings", "/backup"].includes(path);
|
||||||
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user