Skip to content

Commit

Permalink
Merge pull request #976 from UniversityOfHelsinkiCS/trunk
Browse files Browse the repository at this point in the history
Release afterparty
  • Loading branch information
Rochet2 authored Jun 4, 2019
2 parents 3dc67b7 + 9c2a270 commit f17ce53
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ SortableTable.propTypes = {
getRowKey: func.isRequired,
getRowProps: func,
columns: arrayOf(shape({
key: string,
key: string.isRequired,
title: oneOfType([element, string]),
headerProps: shape({}),
getRowVal: func,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,12 @@ class StudyProgrammeSelector extends Component {
{
key: 'name',
title: 'name',
getRowContent: prog => getTextIn(prog.name, language)
getRowVal: prog => getTextIn(prog.name, language)
},
{
key: 'code',
title: 'code',
getRowContent: prog => prog.code
getRowVal: prog => prog.code
}
]
if (studyprogrammes == null) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,11 +89,11 @@ const ThroughputTable = ({ history, throughput, thesis, loading, error, studypro
<Table.HeaderCell >Graduated overall</Table.HeaderCell>
<Table.HeaderCell >Graduated in time</Table.HeaderCell>
{renderCountries ? countries.map(country => <Table.HeaderCell key={country} content={country} />) : null}
<Table.HeaderCell content=">= 30" />
<Table.HeaderCell content=">= 60" />
<Table.HeaderCell content=">= 90" />
<Table.HeaderCell content=">= 120" />
<Table.HeaderCell content=">= 150" />
<Table.HeaderCell content=" 30" />
<Table.HeaderCell content=" 60" />
<Table.HeaderCell content=" 90" />
<Table.HeaderCell content=" 120" />
<Table.HeaderCell content=" 150" />
{thesisTypes.includes('MASTER') && (
<Table.HeaderCell content="Master" />
)}
Expand Down
3 changes: 3 additions & 0 deletions services/oodikone2-frontend/src/redux/students.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,15 @@ const reducer = (state = { data: [] }, action) => {
pending: false,
error: true,
selected: state.selected,
lastSearch: state.lastSearch,
data: state.data
}
case 'FIND_STUDENTS_SUCCESS':
return {
pending: false,
error: false,
selected: state.selected,
lastSearch: state.lastSearch,
data: state.lastSearch === action.query ?
[...state.data.filter(student => student.fetched), ...action.response] :
state.data
Expand All @@ -55,6 +57,7 @@ const reducer = (state = { data: [] }, action) => {
pending: false,
error: false,
selected: action.response.studentNumber,
lastSearch: state.lastSearch,
data: [...state.data.filter(student =>
student.studentNumber !== action.response.studentNumber),
{ ...action.response, ...{ fetched: true } }
Expand Down

0 comments on commit f17ce53

Please sign in to comment.