mirror of
https://github.com/RoboSats/robosats.git
synced 2025-02-22 13:19:02 +00:00
Fix depth chart and coordinator table (#1039)
Fix depth chart and Coordinator table
This commit is contained in:
parent
bfb97e034f
commit
4b99b38853
@ -38,6 +38,7 @@ const OrderTooltip: React.FC<OrderTooltipProps> = ({ order }) => {
|
|||||||
tooltip={t(order.maker_status)}
|
tooltip={t(order.maker_status)}
|
||||||
baseUrl={baseUrl}
|
baseUrl={baseUrl}
|
||||||
small={true}
|
small={true}
|
||||||
|
hashId={order.maker_hash_id}
|
||||||
/>
|
/>
|
||||||
</Grid>
|
</Grid>
|
||||||
</Grid>
|
</Grid>
|
||||||
|
@ -130,16 +130,18 @@ export class Coordinator {
|
|||||||
origin: Origin,
|
origin: Origin,
|
||||||
settings: Settings,
|
settings: Settings,
|
||||||
hostUrl: string,
|
hostUrl: string,
|
||||||
onStarted: (shortAlias: string) => void = () => {},
|
onUpdate: (shortAlias: string) => void = () => {},
|
||||||
): Promise<void> => {
|
): Promise<void> => {
|
||||||
if (this.enabled !== true) return;
|
if (this.enabled !== true) return;
|
||||||
void this.updateUrl(settings, origin, hostUrl);
|
void this.updateUrl(settings, origin, hostUrl, onUpdate);
|
||||||
void this.update(() => {
|
|
||||||
onStarted(this.shortAlias);
|
|
||||||
});
|
|
||||||
};
|
};
|
||||||
|
|
||||||
updateUrl = async (settings: Settings, origin: Origin, hostUrl: string): Promise<void> => {
|
updateUrl = async (
|
||||||
|
settings: Settings,
|
||||||
|
origin: Origin,
|
||||||
|
hostUrl: string,
|
||||||
|
onUpdate: (shortAlias: string) => void = () => {},
|
||||||
|
): Promise<void> => {
|
||||||
if (settings.selfhostedClient && this.shortAlias !== 'local') {
|
if (settings.selfhostedClient && this.shortAlias !== 'local') {
|
||||||
this.url = hostUrl;
|
this.url = hostUrl;
|
||||||
this.basePath = `/${settings.network}/${this.shortAlias}`;
|
this.basePath = `/${settings.network}/${this.shortAlias}`;
|
||||||
@ -147,6 +149,9 @@ export class Coordinator {
|
|||||||
this.url = String(this[settings.network][origin]);
|
this.url = String(this[settings.network][origin]);
|
||||||
this.basePath = '';
|
this.basePath = '';
|
||||||
}
|
}
|
||||||
|
void this.update(() => {
|
||||||
|
onUpdate(this.shortAlias);
|
||||||
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
update = async (onUpdate: (shortAlias: string) => void = () => {}): Promise<void> => {
|
update = async (onUpdate: (shortAlias: string) => void = () => {}): Promise<void> => {
|
||||||
|
Loading…
Reference in New Issue
Block a user