diff --git a/src/components/Semester.vue b/src/components/Semester.vue index 2f726be9..78c976e0 100644 --- a/src/components/Semester.vue +++ b/src/components/Semester.vue @@ -8,12 +8,13 @@ - + + {{ semesterName }} {{ semesterType }} - {{ semesterYear }} + {{ "'" + semesterYear.toString().substring(2) }} @@ -313,6 +314,15 @@ export default { expectedHours: expectedHours }; }, + semesterName: function () { + const yearNames = ['Freshman', 'Sophomore', 'Junior', 'Senior', 'Fifth Year']; + if (this.index === 0) { + return ''; + } else { + const yearIndex = Math.floor((this.index - 1) / 3); + return yearNames[yearIndex]; + } + }, semesterYear: function () { return this.index === 0 ? ''