mirror of
https://github.com/RoboSats/robosats.git
synced 2025-02-07 13:59:06 +00:00
Fix book filter avatar sizes and bookUpdate on refresh
This commit is contained in:
parent
7882dd35ac
commit
bee30eafa9
@ -359,7 +359,7 @@ const BookControl = ({
|
|||||||
<div style={{ display: 'flex', alignItems: 'center', flexWrap: 'wrap' }}>
|
<div style={{ display: 'flex', alignItems: 'center', flexWrap: 'wrap' }}>
|
||||||
<RobotAvatar
|
<RobotAvatar
|
||||||
shortAlias={coordinator.shortAlias}
|
shortAlias={coordinator.shortAlias}
|
||||||
style={{ width: '1.428em', height: '1.428em' }}
|
style={{ width: '1.55em', height: '1.55em' }}
|
||||||
smooth={true}
|
smooth={true}
|
||||||
small={true}
|
small={true}
|
||||||
/>
|
/>
|
||||||
|
@ -824,7 +824,7 @@ const BookTable = ({
|
|||||||
<Grid item xs={6}>
|
<Grid item xs={6}>
|
||||||
<IconButton
|
<IconButton
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
void federation.update();
|
void federation.updateBook();
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<Refresh />
|
<Refresh />
|
||||||
|
@ -108,6 +108,7 @@ export class Federation {
|
|||||||
|
|
||||||
updateBook = async (): Promise<void> => {
|
updateBook = async (): Promise<void> => {
|
||||||
this.loading = true;
|
this.loading = true;
|
||||||
|
this.triggerHook('onCoordinatorUpdate');
|
||||||
this.exchange.loadingCoordinators = Object.keys(this.coordinators).length;
|
this.exchange.loadingCoordinators = Object.keys(this.coordinators).length;
|
||||||
for (const coor of Object.values(this.coordinators)) {
|
for (const coor of Object.values(this.coordinators)) {
|
||||||
await coor.updateBook(() => {
|
await coor.updateBook(() => {
|
||||||
|
Loading…
Reference in New Issue
Block a user