Skip to content

Commit

Permalink
Move Independent Assessments to Tasks
Browse files Browse the repository at this point in the history
  • Loading branch information
YaaL committed Jun 12, 2020
1 parent 4567ce4 commit 1763c82
Showing 1 changed file with 15 additions and 17 deletions.
32 changes: 15 additions & 17 deletions src/views/Exercises/Show.vue
Original file line number Diff line number Diff line change
Expand Up @@ -122,29 +122,27 @@ export default {
},
];
if (this.exercise.applicationsCount || this.hasOpened) {
const children = [
{ page: 'Draft', name: 'exercise-show-applications-in-status', params: { status: STATUS.DRAFT } },
{ page: 'Applied', name: 'exercise-show-applications-in-status', params: { status: STATUS.APPLIED } },
{ page: 'Withdrawn', name: 'exercise-show-applications-in-status', params: { status: STATUS.WITHDRAWN } },
];
if (this.exercise.applicationRecords) {
children.push({ page: 'Independent Assessments', name: 'exercise-show-independent-assessments' });
}
pages.push({
pages.push({
page: 'Applications',
name: 'exercise-show-applications',
children: children,
});
pages.push({
page: 'Tasks',
name: 'exercise-tasks',
children: [
{ page: 'Independent Assessments', name: 'exercise-tasks-independent-assessments' },
{ page: 'Character Checks', name: 'exercise-tasks-character-checks' },
{ page: 'Draft', name: 'exercise-show-applications-in-status', params: { status: STATUS.DRAFT } },
{ page: 'Applied', name: 'exercise-show-applications-in-status', params: { status: STATUS.APPLIED } },
{ page: 'Withdrawn', name: 'exercise-show-applications-in-status', params: { status: STATUS.WITHDRAWN } },
],
});
if (this.exercise.applicationRecords) {
pages.push({
page: 'Tasks',
name: 'exercise-tasks',
children: [
{ page: 'Independent Assessments', name: 'exercise-tasks-independent-assessments' },
{ page: 'Character Checks', name: 'exercise-tasks-character-checks' },
],
});
}
if (this.exercise.applicationRecords) {
const review = this.exercise.applicationRecords.review;
const shortlisted = this.exercise.applicationRecords.shortlisted ? this.exercise.applicationRecords.shortlisted : 0;
Expand Down

0 comments on commit 1763c82

Please sign in to comment.