diff --git a/src/main/webapp/app/assessment/shared/assessment-dashboard/exercise-dashboard/exercise-assessment-dashboard.component.html b/src/main/webapp/app/assessment/shared/assessment-dashboard/exercise-dashboard/exercise-assessment-dashboard.component.html index 81b297d3f3bb..1e9e5c81e615 100644 --- a/src/main/webapp/app/assessment/shared/assessment-dashboard/exercise-dashboard/exercise-assessment-dashboard.component.html +++ b/src/main/webapp/app/assessment/shared/assessment-dashboard/exercise-dashboard/exercise-assessment-dashboard.component.html @@ -211,17 +211,11 @@ @if (exercise.type === ExerciseType.PROGRAMMING) {

- @if (!localVCEnabled) { - - - - } @else { - - } +
} diff --git a/src/main/webapp/app/assessment/shared/assessment-dashboard/exercise-dashboard/exercise-assessment-dashboard.component.ts b/src/main/webapp/app/assessment/shared/assessment-dashboard/exercise-dashboard/exercise-assessment-dashboard.component.ts index 38898593cf1e..b25a21a07f24 100644 --- a/src/main/webapp/app/assessment/shared/assessment-dashboard/exercise-dashboard/exercise-assessment-dashboard.component.ts +++ b/src/main/webapp/app/assessment/shared/assessment-dashboard/exercise-dashboard/exercise-assessment-dashboard.component.ts @@ -51,14 +51,12 @@ import { LegendPosition, PieChartModule } from '@swimlane/ngx-charts'; import dayjs from 'dayjs/esm'; import { faCheckCircle, faExclamationTriangle, faFolderOpen, faListAlt, faQuestionCircle, faSort, faSpinner } from '@fortawesome/free-solid-svg-icons'; import { GraphColors } from 'app/exercise/shared/entities/statistics.model'; -import { PROFILE_LOCALVC } from 'app/app.constants'; import { isManualResult } from 'app/exercise/result/result.utils'; import { TutorParticipationGraphComponent } from 'app/shared/dashboards/tutor-participation-graph/tutor-participation-graph.component'; import { SecondCorrectionEnableButtonComponent } from './second-correction-button/second-correction-enable-button.component'; import { SidePanelComponent } from 'app/shared/side-panel/side-panel.component'; import { TranslateDirective } from 'app/shared/language/translate.directive'; import { FaIconComponent } from '@fortawesome/angular-fontawesome'; -import { ButtonComponent } from 'app/shared/components/button.component'; import { CodeButtonComponent } from 'app/shared/components/code-button/code-button.component'; import { StructuredGradingInstructionsAssessmentLayoutComponent } from 'app/assessment/manage/structured-grading-instructions-assessment-layout/structured-grading-instructions-assessment-layout.component'; import { NgbTooltip } from '@ng-bootstrap/ng-bootstrap'; @@ -74,9 +72,7 @@ import { ArtemisDurationFromSecondsPipe } from 'app/shared/pipes/artemis-duratio import { AssessmentDashboardInformationEntry } from 'app/assessment/shared/assessment-dashboard/assessment-dashboard-information.component'; import { HeaderExercisePageWithDetailsComponent } from 'app/exercise/exercise-headers/header-exercise-page-with-details.component'; import { InfoPanelComponent } from 'app/assessment/shared/info-panel/info-panel.component'; -import { SecureLinkDirective } from 'app/assessment/manage/secure-link.directive'; import { ResultComponent } from 'app/exercise/result/result.component'; -import { ProfileService } from 'app/core/layouts/profiles/shared/profile.service'; import { TutorParticipationService } from 'app/assessment/shared/assessment-dashboard/exercise-dashboard/tutor-participation.service'; export interface ExampleSubmissionQueryParams { @@ -101,8 +97,6 @@ export interface ExampleSubmissionQueryParams { InfoPanelComponent, ProgrammingExerciseInstructionComponent, ModelingEditorComponent, - SecureLinkDirective, - ButtonComponent, CodeButtonComponent, StructuredGradingInstructionsAssessmentLayoutComponent, NgbTooltip, @@ -136,7 +130,6 @@ export class ExerciseAssessmentDashboardComponent implements OnInit { private programmingSubmissionService = inject(ProgrammingSubmissionService); private guidedTourService = inject(GuidedTourService); private sortService = inject(SortService); - private profileService = inject(ProfileService); readonly roundScoreSpecifiedByCourseSettings = roundValueSpecifiedByCourseSettings; readonly getCourseFromExercise = getCourseFromExercise; @@ -152,8 +145,6 @@ export class ExerciseAssessmentDashboardComponent implements OnInit { isTestRun = false; isLoading = false; - localVCEnabled = true; - statsForDashboard = new StatsForDashboard(); exerciseId: number; @@ -262,9 +253,6 @@ export class ExerciseAssessmentDashboardComponent implements OnInit { this.translateService.onLangChange.subscribe(() => { this.setupGraph(); }); - this.profileService.getProfileInfo().subscribe((profileInfo) => { - this.localVCEnabled = profileInfo.activeProfiles.includes(PROFILE_LOCALVC); - }); } setupGraph() { diff --git a/src/main/webapp/app/core/course/overview/exercise-details/exercise-details-student-actions.component.ts b/src/main/webapp/app/core/course/overview/exercise-details/exercise-details-student-actions.component.ts index e568dc4e176b..367ef157d6e8 100644 --- a/src/main/webapp/app/core/course/overview/exercise-details/exercise-details-student-actions.component.ts +++ b/src/main/webapp/app/core/course/overview/exercise-details/exercise-details-student-actions.component.ts @@ -14,7 +14,7 @@ import { faEye, faFolderOpen, faPlayCircle, faRedo, faUsers } from '@fortawesome import { ParticipationService } from 'app/exercise/participation/participation.service'; import dayjs from 'dayjs/esm'; import { QuizExercise } from 'app/quiz/shared/entities/quiz-exercise.model'; -import { PROFILE_ATHENA, PROFILE_LOCALVC } from 'app/app.constants'; +import { PROFILE_ATHENA } from 'app/app.constants'; import { AssessmentType } from 'app/assessment/shared/entities/assessment-type.model'; import { ButtonType } from 'app/shared/components/button.component'; import { NgTemplateOutlet } from '@angular/common'; @@ -79,7 +79,6 @@ export class ExerciseDetailsStudentActionsComponent implements OnInit, OnChanges hasRatedGradedResult: boolean; beforeDueDate: boolean; editorLabel?: string; - localVCEnabled = true; athenaEnabled = false; routerLink: string; @@ -98,7 +97,6 @@ export class ExerciseDetailsStudentActionsComponent implements OnInit, OnChanges } else if (this.exercise.type === ExerciseType.PROGRAMMING) { this.programmingExercise = this.exercise as ProgrammingExercise; this.profileService.getProfileInfo().subscribe((profileInfo) => { - this.localVCEnabled = profileInfo.activeProfiles?.includes(PROFILE_LOCALVC); this.athenaEnabled = profileInfo.activeProfiles?.includes(PROFILE_ATHENA); }); } else if (this.exercise.type === ExerciseType.MODELING) { diff --git a/src/main/webapp/app/core/user/settings/user-settings-container/user-settings-container.component.html b/src/main/webapp/app/core/user/settings/user-settings-container/user-settings-container.component.html index 771b5513693c..e049cbc93080 100644 --- a/src/main/webapp/app/core/user/settings/user-settings-container/user-settings-container.component.html +++ b/src/main/webapp/app/core/user/settings/user-settings-container/user-settings-container.component.html @@ -29,17 +29,15 @@ jhiTranslate="artemisApp.userSettings.notificationSettings" > - @if (localVCEnabled) { - - @if (isAtLeastTutor) { - - - } + + @if (isAtLeastTutor) { + + } diff --git a/src/main/webapp/app/core/user/settings/user-settings-container/user-settings-container.component.ts b/src/main/webapp/app/core/user/settings/user-settings-container/user-settings-container.component.ts index b06b4f966ae6..f4150c2c9066 100644 --- a/src/main/webapp/app/core/user/settings/user-settings-container/user-settings-container.component.ts +++ b/src/main/webapp/app/core/user/settings/user-settings-container/user-settings-container.component.ts @@ -1,7 +1,6 @@ import { Component, OnInit, inject } from '@angular/core'; import { faUser } from '@fortawesome/free-solid-svg-icons'; -import { ProfileService } from 'app/core/layouts/profiles/shared/profile.service'; -import { PROFILE_LOCALVC, addPublicFilePrefix } from 'app/app.constants'; +import { addPublicFilePrefix } from 'app/app.constants'; import { User } from 'app/core/user/user.model'; import { AccountService } from 'app/core/auth/account.service'; import { tap } from 'rxjs'; @@ -19,21 +18,15 @@ import { FontAwesomeModule } from '@fortawesome/angular-fontawesome'; imports: [TranslateDirective, RouterModule, FontAwesomeModule], }) export class UserSettingsContainerComponent implements OnInit { - private readonly profileService = inject(ProfileService); private readonly accountService = inject(AccountService); // Icons faUser = faUser; currentUser?: User; - localVCEnabled = true; isAtLeastTutor = false; ngOnInit() { - this.profileService.getProfileInfo().subscribe((profileInfo) => { - this.localVCEnabled = profileInfo.activeProfiles.includes(PROFILE_LOCALVC); - }); - this.accountService .getAuthenticationState() .pipe( diff --git a/src/main/webapp/app/exam/manage/exercise-groups/exercise-groups.component.html b/src/main/webapp/app/exam/manage/exercise-groups/exercise-groups.component.html index 43cd6963ce39..24b21b162d4e 100644 --- a/src/main/webapp/app/exam/manage/exercise-groups/exercise-groups.component.html +++ b/src/main/webapp/app/exam/manage/exercise-groups/exercise-groups.component.html @@ -132,11 +132,7 @@
{{ exerciseGroup.title }}