Skip to content

Commit c7e875f

Browse files
authored
Merge pull request #371 from MOV-AI/dev
Release lib-react 1.3.9
2 parents 8d32dc5 + e0433a7 commit c7e875f

File tree

5 files changed

+41
-13
lines changed

5 files changed

+41
-13
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
# v1.3.11
2+
3+
- [FP-2206](https://movai.atlassian.net/browse/FP-2206): IDE- 'current password' field behaves as mandatory but does not marked with asterisk
4+
- [FP-3098](https://movai.atlassian.net/browse/FP-3098): UI is logged out but just reports that is offline
5+
- [FP-3034](https://movai.atlassian.net/browse/FP-3034): Logs - Do not select backend by default
6+
17
# v1.3.9
28

39
- [FP-3093](https://movai.atlassian.net/browse/FP-3093): Removed onClick handler that was causing issues

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@mov-ai/mov-fe-lib-react",
3-
"version": "1.3.10-0",
3+
"version": "1.3.11-0",
44
"description": "The Mov.AI's frontend library for React.",
55
"keywords": [
66
"frontend",

src/Components/HOCs/withOfflineValidation.tsx

Lines changed: 33 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,18 @@ import Alert from "@material-ui/lab/Alert";
44
import CircularProgress from "@material-ui/core/CircularProgress";
55
import { makeStyles } from "@material-ui/styles";
66
import { Button } from "@material-ui/core";
7+
import Box from "@material-ui/core/Box";
78

89
const useStyles = makeStyles(() => ({
9-
alert: { position: "fixed", bottom: 0, left: 0, right: 0, zIndex: 9999 },
10+
alert: {
11+
position: "fixed",
12+
bottom: 0,
13+
left: 0,
14+
right: 0,
15+
zIndex: 9999,
16+
display: "flex",
17+
alignItems: "center",
18+
},
1019
}));
1120

1221
export default function withOfflineValidation(Component: React.ComponentType) {
@@ -55,16 +64,29 @@ export default function withOfflineValidation(Component: React.ComponentType) {
5564
variant="filled"
5665
severity="error"
5766
action={
58-
<Button color="inherit" size="small" onClick={retryConnection}>
59-
{loading ? (
60-
<CircularProgress
61-
size={20}
62-
color="inherit"
63-
></CircularProgress>
64-
) : (
65-
"RETRY"
66-
)}
67-
</Button>
67+
<Box display="flex" justifyContent="center" alignItems="center">
68+
<Button
69+
color="inherit"
70+
size="small"
71+
onClick={retryConnection}
72+
>
73+
{loading ? (
74+
<CircularProgress
75+
size={20}
76+
color="inherit"
77+
></CircularProgress>
78+
) : (
79+
"RETRY CONNECTION"
80+
)}
81+
</Button>
82+
<Button
83+
color="inherit"
84+
size="small"
85+
onClick={() => location.reload()}
86+
>
87+
RELOAD PAGE
88+
</Button>
89+
</Box>
6890
}
6991
>
7092
Connection failed... You're now in offline mode, please wait to

src/Components/Logs/utils/Constants.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ export const COLUMNS_LABEL = {
2727
export const DEFAULT_SERVICE = Object.keys(CONSTANTS.SERVICE_LABEL).reduce(
2828
(a, item) => ({ [item]: false, ...a }),
2929
{
30-
backend: true,
3130
spawner: true,
3231
},
3332
);

src/Components/ProfileMenu/ResetPassword.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -294,6 +294,7 @@ const ResetPasswordModal = forwardRef((props, ref) => {
294294
id={FORM_FIELDS.CURRENT_PASSWORD}
295295
onChange={handleChange}
296296
variant="outlined"
297+
required
297298
/>
298299
)}
299300
<TextField

0 commit comments

Comments
 (0)