Skip to content

Commit 91108f5

Browse files
authored
Merge pull request #2729 from objectcomputing/release/0.8
Release v0.8.5
2 parents edb0d54 + 2f26159 commit 91108f5

File tree

4 files changed

+13
-6
lines changed

4 files changed

+13
-6
lines changed

server/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ plugins {
77
id "jacoco"
88
}
99

10-
version "0.8.4"
10+
version "0.8.5"
1111
group "com.objectcomputing.checkins"
1212

1313
repositories {

web-ui/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "web-ui",
3-
"version": "0.8.4",
3+
"version": "0.8.5",
44
"private": true,
55
"type": "module",
66
"dependencies": {

web-ui/src/components/feedback_submit_form/FeedbackSubmitForm.jsx

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ const FeedbackSubmitForm = ({
7878
const { state, dispatch } = useContext(AppContext);
7979
const csrf = selectCsrfToken(state);
8080
const [isLoading, setIsLoading] = useState(false);
81+
const [isSubmitting, setIsSubmitting] = useState(false);
8182
const [isReviewing, setIsReviewing] = useState(reviewOnly);
8283
const history = useHistory();
8384
const [questionAnswerPairs, setQuestionAnswerPairs] = useState([]);
@@ -117,6 +118,7 @@ const FeedbackSubmitForm = ({
117118
}
118119

119120
const onSubmitHandler = () => {
121+
setIsSubmitting(true);
120122
updateAllAnswersSubmit()
121123
.then(res => {
122124
for (let i = 0; i < res.length; ++i) {
@@ -135,9 +137,11 @@ const FeedbackSubmitForm = ({
135137
})
136138
.then(resTwo => {
137139
if (resTwo === false) {
140+
setIsSubmitting(false);
138141
return;
139142
}
140143
updateRequestSubmit().then(res => {
144+
setIsSubmitting(false);
141145
if (res && res.payload && res.payload.data && !res.error) {
142146
history.push(`/feedback/submit/confirmation/?request=${requestId}`);
143147
} else {
@@ -225,7 +229,7 @@ const FeedbackSubmitForm = ({
225229
<React.Fragment>
226230
<Button
227231
className={classes.coloredButton}
228-
disabled={isLoading}
232+
disabled={isLoading || isSubmitting}
229233
onClick={() => setIsReviewing(false)}
230234
variant="contained"
231235
color="secondary"
@@ -234,7 +238,7 @@ const FeedbackSubmitForm = ({
234238
</Button>
235239
<Button
236240
className={classes.button}
237-
disabled={isLoading}
241+
disabled={isLoading || isSubmitting}
238242
onClick={onSubmitHandler}
239243
variant="contained"
240244
color="primary"

web-ui/src/components/reviews/periods/ReviewPeriods.jsx

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -389,11 +389,14 @@ const ReviewPeriods = ({ onPeriodSelected, mode }) => {
389389
) : periods.length > 0 ? (
390390
periods
391391
.sort((a, b) => {
392+
const aName = (a.name || '');
392393
return a.reviewStatus === b.reviewStatus
393-
? (a.name || '').localeCompare(b.name)
394+
? aName.localeCompare(b.name)
394395
: a.reviewStatus === ReviewStatus.OPEN
395396
? -1
396-
: 1;
397+
: (b.reviewStatus === ReviewStatus.OPEN
398+
? 1
399+
: aName.localeCompare(b.name));
397400
})
398401
.map((period) => (
399402
<div>

0 commit comments

Comments
 (0)