Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
54 changes: 51 additions & 3 deletions src/components/Board/Board.container.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { isEqual } from 'lodash';
import { injectIntl, intlShape } from 'react-intl';
import isMobile from 'ismobilejs';
import domtoimage from 'dom-to-image';
import CircularProgress from '@material-ui/core/CircularProgress';
import { CircularProgress, LinearProgress } from '@material-ui/core';
import Button from '@material-ui/core/Button';
import Dialog from '@material-ui/core/Dialog';
import DialogActions from '@material-ui/core/DialogActions';
Expand Down Expand Up @@ -1517,8 +1517,56 @@ export class BoardContainer extends Component {

if (!this.props.board) {
return (
<div className="Board__loading">
<CircularProgress size={60} thickness={5} color="inherit" />
<div
style={{
position: 'fixed',
top: 0,
left: 0,
width: '100%',
height: '100%',
backgroundColor: 'rgba(0, 0, 0, 0.9)',
zIndex: 9999,
display: 'flex',
flexDirection: 'column',
justifyContent: 'center',
alignItems: 'center',
color: 'white'
}}
>
{/* Use two spinners for a more active look */}
<CircularProgress
size={50}
thickness={4}
style={{ color: '#4CAF50' }}
/>
<CircularProgress
size={60}
thickness={5}
color="inherit"
style={{ position: 'absolute', opacity: 0.2 }}
/>

<h3
style={{
marginTop: '20px',
textAlign: 'center',
fontWeight: 'normal',
marginBottom: '8px'
}}
>
Setting up your personalized boards...
</h3>

{/* LinearProgress */}
<LinearProgress
style={{ width: '300px', height: '8px', borderRadius: '4px' }}
variant="indeterminate"
color="secondary"
/>

<p style={{ marginTop: '10px', fontSize: '14px', opacity: 0.7 }}>
Please wait, this process runs only once.
</p>
</div>
);
}
Expand Down
5 changes: 5 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -5852,6 +5852,11 @@ dotenv@^10.0.0:
resolved "https://registry.npmjs.org/dotenv/-/dotenv-10.0.0.tgz"
integrity sha512-rlBi9d8jpv9Sf1klPjNfFAuWDjKLwTIJJ/VxtoTwIR6hnZxcEOQCZg2oIL3MWBYw5GpUDKOEnND7LXTbIpQ03Q==

dotenv@^16.0.3:
version "16.6.1"
resolved "https://registry.yarnpkg.com/dotenv/-/dotenv-16.6.1.tgz#773f0e69527a8315c7285d5ee73c4459d20a8020"
integrity sha512-uBq4egWHTcTt33a72vpSG0z3HnPuIl6NqYcTrKEg2azoEyl2hpW0zqlxysq2pK9HlDIHyHyakeYaYnSAwd8bow==

dotenv@^16.5.0:
version "16.5.0"
resolved "https://registry.yarnpkg.com/dotenv/-/dotenv-16.5.0.tgz#092b49f25f808f020050051d1ff258e404c78692"
Expand Down