Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 20 additions & 13 deletions frontend/src/components/Dialogs/VisitThirdParty.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,14 @@ const VisitThirdParty = ({ open, onClose, thirdPartyOrder }: Props): React.JSX.E
<DialogTitle>{t('Open external order')}</DialogTitle>
<DialogContent>
<DialogContentText>
{t(
'This order is not managed by a RoboSats coordinator. Please ensure you are comfortable with the privacy and trust trade-offs. You will open an external link or app',
)}
{thirdPartyOrder?.link
? t(
'This order is not managed by a RoboSats coordinator. Please ensure you are comfortable with the privacy and trust trade-offs. You will open an external link or app',
)
: t(
"This order is not managed by a RoboSats coordinator. {{alias}} does not provide web access to it; please check {{alias}}'s platform for more details.",
{ alias: thirdPartyOrder?.coordinatorShortAlias },
)}
</DialogContentText>
</DialogContent>
<DialogActions>
Expand All @@ -38,16 +43,18 @@ const VisitThirdParty = ({ open, onClose, thirdPartyOrder }: Props): React.JSX.E
>
{t('Cancel')}
</Button>
<Button
onClick={() => {
if (thirdPartyOrder?.link) window.open(thirdPartyOrder?.link, '_blank')?.focus();
onClose();
}}
>
{t('Browser')}
<div style={{ width: '0.5em' }} />
<NewTabIcon sx={{ width: '0.7em', height: '0.7em' }} />
</Button>
{thirdPartyOrder?.link && (
<Button
onClick={() => {
if (thirdPartyOrder?.link) window.open(thirdPartyOrder?.link, '_blank')?.focus();
onClose();
}}
>
{t('Browser')}
<div style={{ width: '0.5em' }} />
<NewTabIcon sx={{ width: '0.7em', height: '0.7em' }} />
</Button>
)}
</DialogActions>
</Dialog>
);
Expand Down
1 change: 0 additions & 1 deletion frontend/src/components/RobotInfo/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,6 @@ const RobotInfo: React.FC<Props> = ({ coordinator, onClose }: Props) => {
if (robot?.token && robot.encPrivKey != null) {
void signCleartextMessage(rewardInvoice, robot.encPrivKey, robot?.token).then(
(signedInvoice) => {
console.log('Signed message:', signedInvoice);
void robot.fetchReward(federation, signedInvoice).then((data) => {
setBadInvoice(data.bad_invoice ?? '');
setShowRewardsSpinner(false);
Expand Down
1 change: 1 addition & 0 deletions frontend/src/models/Slot.model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ class Slot {
this.robots = shortAliases.reduce((acc: Record<string, Robot>, shortAlias: string) => {
acc[shortAlias] = new Robot({
...robotAttributes,
token,
shortAlias,
hasEnoughEntropy,
bitsEntropy,
Expand Down