From 5def11c81fd1c1adb9a705b126e6d81cc9510c88 Mon Sep 17 00:00:00 2001
From: satikaj <117552851+satikaj@users.noreply.github.com>
Date: Tue, 11 Jun 2024 21:55:37 +1000
Subject: [PATCH] refactor: remove scorm extension deny button
---
.../task-comment/scorm-extension-comment.ts | 5 -----
.../scorm-extension-comment.component.html | 19 ++++++++-----------
.../scorm-extension-comment.component.ts | 11 -----------
3 files changed, 8 insertions(+), 27 deletions(-)
diff --git a/src/app/api/models/task-comment/scorm-extension-comment.ts b/src/app/api/models/task-comment/scorm-extension-comment.ts
index 3b4dfbccb..b8aac7909 100644
--- a/src/app/api/models/task-comment/scorm-extension-comment.ts
+++ b/src/app/api/models/task-comment/scorm-extension-comment.ts
@@ -26,11 +26,6 @@ export class ScormExtensionComment extends TaskComment {
);
}
- public deny(): Observable {
- this.granted = false;
- return this.assessScormExtension();
- }
-
public grant(): Observable {
this.granted = true;
return this.assessScormExtension();
diff --git a/src/app/tasks/task-comments-viewer/scorm-extension-comment/scorm-extension-comment.component.html b/src/app/tasks/task-comments-viewer/scorm-extension-comment/scorm-extension-comment.component.html
index fa7c4cb39..b0a74a991 100644
--- a/src/app/tasks/task-comments-viewer/scorm-extension-comment/scorm-extension-comment.component.html
+++ b/src/app/tasks/task-comments-viewer/scorm-extension-comment/scorm-extension-comment.component.html
@@ -14,17 +14,14 @@
reason: {{ comment.text }}
@if (isNotStudent) {
-
-
-
-
+
}
diff --git a/src/app/tasks/task-comments-viewer/scorm-extension-comment/scorm-extension-comment.component.ts b/src/app/tasks/task-comments-viewer/scorm-extension-comment/scorm-extension-comment.component.ts
index eb1790edd..7585e8d7c 100644
--- a/src/app/tasks/task-comments-viewer/scorm-extension-comment/scorm-extension-comment.component.ts
+++ b/src/app/tasks/task-comments-viewer/scorm-extension-comment/scorm-extension-comment.component.ts
@@ -39,17 +39,6 @@ export class ScormExtensionCommentComponent implements OnInit {
return this.task.unit.currentUserIsStaff;
}
- denyExtension() {
- this.comment.deny().subscribe({
- next: (tc: TaskComment) => {
- this.alerts.success('Attempt request denied', 2000);
- },
- error: (response) => {
- this.handleError(response);
- },
- });
- }
-
grantExtension() {
this.comment.grant().subscribe({
next: (tc: TaskComment) => {