mirror of
https://github.com/RoboSats/robosats.git
synced 2025-07-20 17:53:22 +00:00
Merge pull request #1823 from RoboSats/display-swaps-support-in-order-details
Display swaps support in order details
This commit is contained in:
3
.github/workflows/release.yml
vendored
3
.github/workflows/release.yml
vendored
@ -170,9 +170,6 @@ jobs:
|
||||
path: .
|
||||
name: robosats-desktop-${{ needs.check-versions.outputs.semver }}-mac-darwin-x64.zip
|
||||
|
||||
- name: List macOS build directory
|
||||
run: ls -la
|
||||
|
||||
- name: 'Upload macOS Build Artifact'
|
||||
id: upload-release-mac-zip-asset
|
||||
uses: actions/upload-release-asset@v1
|
||||
|
@ -71,6 +71,10 @@ const OrderDetails = ({
|
||||
setCurrencyCode(currencies[(currentOrder?.currency ?? 1).toString()]);
|
||||
}, [currentOrder]);
|
||||
|
||||
useEffect(() => {
|
||||
if (!coordinator?.info) coordinator?.loadInfo();
|
||||
}, [coordinator.shortAlias, coordinator.info]);
|
||||
|
||||
const amountString = useMemo(() => {
|
||||
if (currentOrder === null) return;
|
||||
|
||||
@ -262,7 +266,6 @@ const OrderDetails = ({
|
||||
onClickCoordinator();
|
||||
}}
|
||||
>
|
||||
{' '}
|
||||
<Grid container direction='row' justifyContent='center' alignItems='center'>
|
||||
<Grid item xs={2}>
|
||||
<RobotAvatar
|
||||
@ -277,6 +280,15 @@ const OrderDetails = ({
|
||||
</Grid>
|
||||
</Grid>
|
||||
</ListItemButton>
|
||||
{coordinator?.info && !coordinator?.info?.swap_enabled && (
|
||||
<ListItem>
|
||||
<Grid sx={{ marginBottom: 1 }}>
|
||||
<Alert severity='warning' sx={{ marginTop: 2 }}>
|
||||
{t('This coordinator does not support on-chain swaps.')}
|
||||
</Alert>
|
||||
</Grid>
|
||||
</ListItem>
|
||||
)}
|
||||
|
||||
<Divider />
|
||||
|
||||
|
Reference in New Issue
Block a user