Fix depth chart and coordinator table (#1039)

Fix depth chart and Coordinator table
This commit is contained in:
KoalaSat 2023-12-31 14:59:46 +00:00 committed by GitHub
parent bfb97e034f
commit 4b99b38853
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 12 additions and 6 deletions

View File

@ -38,6 +38,7 @@ const OrderTooltip: React.FC<OrderTooltipProps> = ({ order }) => {
tooltip={t(order.maker_status)}
baseUrl={baseUrl}
small={true}
hashId={order.maker_hash_id}
/>
</Grid>
</Grid>

View File

@ -130,16 +130,18 @@ export class Coordinator {
origin: Origin,
settings: Settings,
hostUrl: string,
onStarted: (shortAlias: string) => void = () => {},
onUpdate: (shortAlias: string) => void = () => {},
): Promise<void> => {
if (this.enabled !== true) return;
void this.updateUrl(settings, origin, hostUrl);
void this.update(() => {
onStarted(this.shortAlias);
});
void this.updateUrl(settings, origin, hostUrl, onUpdate);
};
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') {
this.url = hostUrl;
this.basePath = `/${settings.network}/${this.shortAlias}`;
@ -147,6 +149,9 @@ export class Coordinator {
this.url = String(this[settings.network][origin]);
this.basePath = '';
}
void this.update(() => {
onUpdate(this.shortAlias);
});
};
update = async (onUpdate: (shortAlias: string) => void = () => {}): Promise<void> => {