diff --git a/src/main/webapp/app/app.constants.ts b/src/main/webapp/app/app.constants.ts index 809847185d06..fad160dd7839 100644 --- a/src/main/webapp/app/app.constants.ts +++ b/src/main/webapp/app/app.constants.ts @@ -20,3 +20,5 @@ export const ARTEMIS_DEFAULT_COLOR = '#3E8ACC'; export const ARTEMIS_VERSION_HEADER = 'Content-Version'; export const PROFILE_LOCALVC = 'localvc'; + +export const PROFILE_LTI = 'lti'; diff --git a/src/main/webapp/app/course/manage/course-update.component.ts b/src/main/webapp/app/course/manage/course-update.component.ts index 74169cc4cc89..0b4c495320d5 100644 --- a/src/main/webapp/app/course/manage/course-update.component.ts +++ b/src/main/webapp/app/course/manage/course-update.component.ts @@ -8,7 +8,7 @@ import { regexValidator } from 'app/shared/form/shortname-validator.directive'; import { Course, CourseInformationSharingConfiguration, isCommunicationEnabled, isMessagingEnabled } from 'app/entities/course.model'; import { CourseManagementService } from './course-management.service'; import { ColorSelectorComponent } from 'app/shared/color-selector/color-selector.component'; -import { ARTEMIS_DEFAULT_COLOR, PROFILE_LOCALVC } from 'app/app.constants'; +import { ARTEMIS_DEFAULT_COLOR, PROFILE_LTI } from 'app/app.constants'; import { CachingStrategy } from 'app/shared/image/secured-image.component'; import { ProfileService } from 'app/shared/layouts/profiles/profile.service'; import dayjs from 'dayjs/esm'; @@ -133,7 +133,7 @@ export class CourseUpdateComponent implements OnInit { this.course.instructorGroupName = 'artemis-dev'; } } - this.ltiEnabled = profileInfo.activeProfiles.includes(PROFILE_LOCALVC); + this.ltiEnabled = profileInfo.activeProfiles.includes(PROFILE_LTI); } }); diff --git a/src/main/webapp/app/course/manage/detail/course-detail.component.ts b/src/main/webapp/app/course/manage/detail/course-detail.component.ts index a7f81434d675..69419d176125 100644 --- a/src/main/webapp/app/course/manage/detail/course-detail.component.ts +++ b/src/main/webapp/app/course/manage/detail/course-detail.component.ts @@ -1,7 +1,7 @@ import { Component, OnDestroy, OnInit } from '@angular/core'; import { ActivatedRoute } from '@angular/router'; import { HttpErrorResponse, HttpResponse } from '@angular/common/http'; -import { PROFILE_LOCALVC } from 'app/app.constants'; +import { PROFILE_LTI } from 'app/app.constants'; import { ProfileService } from 'app/shared/layouts/profiles/profile.service'; import { Subscription } from 'rxjs'; import { Course } from 'app/entities/course.model'; @@ -64,7 +64,7 @@ export class CourseDetailComponent implements OnInit, OnDestroy { */ ngOnInit() { this.profileService.getProfileInfo().subscribe((profileInfo) => { - this.ltiEnabled = profileInfo.activeProfiles.includes(PROFILE_LOCALVC); + this.ltiEnabled = profileInfo.activeProfiles.includes(PROFILE_LTI); }); this.route.data.subscribe(({ course }) => { if (course) {