Skip to content

Commit

Permalink
fix: display loading dialog state until base image upload is finished
Browse files Browse the repository at this point in the history
  • Loading branch information
danadajian committed May 2, 2023
1 parent 1372bcd commit 7353a73
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions frontend/components/update-images-button.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -82,12 +82,12 @@ export const UpdateImagesButton = () => {
const dialogErrorContent = error && <Error error={error} />;
const getDialogContent = (state?: UpdateBaseImagesText) => {
switch (state) {
case UpdateBaseImagesText.UPDATING:
return dialogLoadingContent;
case UpdateBaseImagesText.NOT_UPDATED:
return dialogContent;
case UpdateBaseImagesText.ERROR:
return dialogErrorContent;
default:
return dialogContent;
return dialogLoadingContent;
}
};

Expand Down

0 comments on commit 7353a73

Please sign in to comment.