Skip to content

Commit

Permalink
add attempt properties to sidebar
Browse files Browse the repository at this point in the history
  • Loading branch information
coolchock committed Feb 16, 2025
1 parent dfff20c commit 2d7e48d
Showing 1 changed file with 11 additions and 17 deletions.
28 changes: 11 additions & 17 deletions src/main/webapp/app/overview/course-exams/course-exams.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,35 +10,29 @@ import { StudentExam } from 'app/entities/student-exam.model';
import { ExamParticipationService } from 'app/exam/participate/exam-participation.service';
import { faAngleDown, faAngleUp, faListAlt } from '@fortawesome/free-solid-svg-icons';
import { CourseStorageService } from 'app/course/manage/course-storage.service';
import { AccordionGroups, CollapseState, SidebarCardElement, SidebarData, SidebarItemShowAlways } from 'app/types/sidebar';
import { AccordionGroups, CollapseState, SidebarCardElement, SidebarData } from 'app/types/sidebar';
import { CourseOverviewService } from '../course-overview.service';
import { cloneDeep } from 'lodash-es';
import { NgClass } from '@angular/common';
import { SidebarComponent } from 'app/shared/sidebar/sidebar.component';
import { TranslateDirective } from 'app/shared/language/translate.directive';

const DEFAULT_UNIT_GROUPS: AccordionGroups = {
future: { entityData: [] },
current: { entityData: [] },
dueSoon: { entityData: [] },
past: { entityData: [] },
noDate: { entityData: [] },
real: { entityData: [] },
test: { entityData: [] },
attempt: { entityData: [] },
};

const DEFAULT_COLLAPSE_STATE: CollapseState = {
future: true,
current: false,
dueSoon: false,
past: true,
noDate: true,
real: false,
test: false,
attempt: false,
};

const DEFAULT_SHOW_ALWAYS: SidebarItemShowAlways = {
future: false,
current: false,
dueSoon: false,
past: false,
noDate: false,
const DEFAULT_SHOW_ALWAYS: CollapseState = {
real: false,
test: false,
attempt: false,
};

@Component({
Expand Down

0 comments on commit 2d7e48d

Please sign in to comment.