diff --git a/app/assets/javascripts/components/saved_annotations/saved_annotations_sidecard.ts b/app/assets/javascripts/components/saved_annotations/saved_annotations_sidecard.ts deleted file mode 100644 index d5fe7fc662..0000000000 --- a/app/assets/javascripts/components/saved_annotations/saved_annotations_sidecard.ts +++ /dev/null @@ -1,53 +0,0 @@ -import { customElement, property } from "lit/decorators.js"; -import { ShadowlessLitElement } from "components/meta/shadowless_lit_element"; -import { html, TemplateResult } from "lit"; -import "./saved_annotation_list"; -import { savedAnnotationState } from "state/SavedAnnotations"; - -/** - * This component represents a list of saved annotations - * - * @element d-saved-annotations-sidecard - * - * @prop {Number} courseId - used to fetch saved annotations by course - * @prop {Number} exerciseId - used to fetch saved annotations by exercise - * @prop {Number} userId - used to fetch saved annotations by user - */ -@customElement("d-saved-annotations-sidecard") -export class SavedAnnotationList extends ShadowlessLitElement { - @property({ type: Number, attribute: "course-id" }) - courseId: number; - @property({ type: Number, attribute: "exercise-id" }) - exerciseId: number; - @property({ type: Number, attribute: "user-id" }) - userId: number; - - get potentialSavedAnnotationsExist(): boolean { - return savedAnnotationState.getList(new Map([ - ["course_id", this.courseId.toString()], - ["exercise_id", this.exerciseId.toString()], - ["user_id", this.userId.toString()] - ])).length > 0; - } - - render(): TemplateResult { - return this.potentialSavedAnnotationsExist ? html` -
- ${I18n.t("js.saved_annotation.sidecard.link")} -
- -