Skip to content

Commit

Permalink
Fix book filter avatar sizes and bookUpdate on refresh
Browse files Browse the repository at this point in the history
  • Loading branch information
Reckless-Satoshi committed Jan 24, 2024
1 parent 7882dd3 commit bee30ea
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion frontend/src/components/BookTable/BookControl.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,7 @@ const BookControl = ({
<div style={{ display: 'flex', alignItems: 'center', flexWrap: 'wrap' }}>
<RobotAvatar
shortAlias={coordinator.shortAlias}
style={{ width: '1.428em', height: '1.428em' }}
style={{ width: '1.55em', height: '1.55em' }}
smooth={true}
small={true}
/>
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/components/BookTable/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -824,7 +824,7 @@ const BookTable = ({
<Grid item xs={6}>
<IconButton
onClick={() => {
void federation.update();
void federation.updateBook();
}}
>
<Refresh />
Expand Down
1 change: 1 addition & 0 deletions frontend/src/models/Federation.model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@ export class Federation {

updateBook = async (): Promise<void> => {
this.loading = true;
this.triggerHook('onCoordinatorUpdate');
this.exchange.loadingCoordinators = Object.keys(this.coordinators).length;
for (const coor of Object.values(this.coordinators)) {
await coor.updateBook(() => {
Expand Down

0 comments on commit bee30ea

Please sign in to comment.