Skip to content

Commit

Permalink
Merge pull request #466 from jac-uk/feature/441-application-heading
Browse files Browse the repository at this point in the history
441 Added the application heading on the right side
  • Loading branch information
lloback authored May 20, 2020
2 parents 8d4dfd4 + 77e7b60 commit b9c57b0
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
7 changes: 7 additions & 0 deletions src/helpers/constants.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
const STATUS = {
DRAFT: 'draft',
APPLIED: 'applied',
WITHDRAWN: 'withdrawn',
};

export { STATUS };
6 changes: 4 additions & 2 deletions src/views/Exercises/Show.vue
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ import LoadingMessage from '@/components/LoadingMessage';
import Navigation from '@/components/Page/Navigation';
import AddToFavouritesButton from '@/components/Page/AddToFavouritesButton';
import { mapState, mapGetters } from 'vuex';
import { STATUS } from '@/helpers/constants';
export default {
components: {
Expand Down Expand Up @@ -125,8 +126,9 @@ export default {
page: 'Applications',
name: 'exercise-show-applications',
children: [
{ page: 'Draft', name: 'exercise-show-applications-in-status', params: { status: 'draft' } },
{ page: 'Applied', name: 'exercise-show-applications-in-status', params: { status: 'applied' } },
{ 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 } },
{ page: 'Independent Assessments', name: 'exercise-show-independent-assessments' },
],
});
Expand Down

0 comments on commit b9c57b0

Please sign in to comment.