Skip to content

Commit

Permalink
Add progress labels when opening a Realm (#1148)
Browse files Browse the repository at this point in the history
  • Loading branch information
nirinchev committed Jun 4, 2019
1 parent e4d83b6 commit f3fee33
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/ui/reusable/LoadingOverlay/LoadingOverlay.tsx
Expand Up @@ -23,6 +23,7 @@ import { Button, Progress } from 'reactstrap';
import { LoadingDots } from '../LoadingDots';
import { ILoadingProgress } from './index';

import { prettyBytes } from '../../../utils';
import './LoadingOverlay.scss';

/**
Expand Down Expand Up @@ -75,7 +76,10 @@ export const LoadingOverlay = ({
className="LoadingOverlay__Progress"
value={progress.transferred}
max={progress.transferable}
/>
>
{// tslint:disable-next-line: prettier
`${prettyBytes(progress.transferred || 0)} / ${prettyBytes(progress.transferable || 0)}`}
</Progress>
)}
{showDots ? <LoadingDots /> : null}
{progress && progress.retry ? (
Expand Down

0 comments on commit f3fee33

Please sign in to comment.