From 19829fa29790eb9abede004fcbc849716bbbcad3 Mon Sep 17 00:00:00 2001 From: Hiroki Terashima Date: Wed, 25 Oct 2023 09:58:24 -0700 Subject: [PATCH] feat(AuthoringTool): Move preview unit button to top bar (#1486) Co-authored-by: Jonathan Lim-Breitbart --- .../components/top-bar/top-bar.component.html | 5 +- .../components/top-bar/top-bar.component.ts | 4 ++ .../project-authoring.component.html | 10 ---- .../project-authoring.component.ts | 6 --- src/messages.xlf | 46 +++++++++---------- 5 files changed, 28 insertions(+), 43 deletions(-) diff --git a/src/assets/wise5/authoringTool/components/top-bar/top-bar.component.html b/src/assets/wise5/authoringTool/components/top-bar/top-bar.component.html index 96b713973e4..25313bd8383 100644 --- a/src/assets/wise5/authoringTool/components/top-bar/top-bar.component.html +++ b/src/assets/wise5/authoringTool/components/top-bar/top-bar.component.html @@ -18,12 +18,13 @@

> info + -
diff --git a/src/assets/wise5/authoringTool/project-authoring/project-authoring.component.ts b/src/assets/wise5/authoringTool/project-authoring/project-authoring.component.ts index e54d6212fad..cc2c3e88384 100644 --- a/src/assets/wise5/authoringTool/project-authoring/project-authoring.component.ts +++ b/src/assets/wise5/authoringTool/project-authoring/project-authoring.component.ts @@ -1,5 +1,4 @@ import { Component } from '@angular/core'; -import { ConfigService } from '../../services/configService'; import { DeleteNodeService } from '../../services/deleteNodeService'; import { TeacherProjectService } from '../../services/teacherProjectService'; import { TeacherDataService } from '../../services/teacherDataService'; @@ -25,7 +24,6 @@ export class ProjectAuthoringComponent { private subscriptions: Subscription = new Subscription(); constructor( - private configService: ConfigService, private deleteNodeService: DeleteNodeService, private projectService: TeacherProjectService, private dataService: TeacherDataService, @@ -60,10 +58,6 @@ export class ProjectAuthoringComponent { this.unselectAllItems(); } - protected previewProject(): void { - window.open(`${this.configService.getConfigParam('previewProjectURL')}`); - } - protected isGroupNode(nodeId: string): boolean { return this.projectService.isGroupNode(nodeId); } diff --git a/src/messages.xlf b/src/messages.xlf index 112c097cc90..bc0f7c29774 100644 --- a/src/messages.xlf +++ b/src/messages.xlf @@ -1147,7 +1147,7 @@ Click "Cancel" to keep the invalid JSON open so you can fix it. src/assets/wise5/authoringTool/components/top-bar/top-bar.component.html - 38 + 39 src/assets/wise5/components/common/feedbackRule/edit-feedback-rules/edit-feedback-rules.component.html @@ -1454,8 +1454,8 @@ Click "Cancel" to keep the invalid JSON open so you can fix it.8 - src/assets/wise5/authoringTool/project-authoring/project-authoring.component.html - 61 + src/assets/wise5/authoringTool/components/top-bar/top-bar.component.html + 21 src/assets/wise5/classroomMonitor/classroomMonitorComponents/shared/top-bar/top-bar.component.html @@ -9685,7 +9685,7 @@ Click "Cancel" to keep the invalid JSON open so you can fix it. src/assets/wise5/authoringTool/project-authoring/project-authoring.component.html - 141 + 131 @@ -9700,7 +9700,7 @@ Click "Cancel" to keep the invalid JSON open so you can fix it. src/assets/wise5/authoringTool/project-authoring/project-authoring.component.html - 199 + 189 @@ -9715,7 +9715,7 @@ Click "Cancel" to keep the invalid JSON open so you can fix it. src/assets/wise5/authoringTool/project-authoring/project-authoring.component.html - 200 + 190 @@ -9823,25 +9823,21 @@ Click "Cancel" to keep the invalid JSON open so you can fix it.Switch to Grading View src/assets/wise5/authoringTool/components/top-bar/top-bar.component.html - 25 - - - src/assets/wise5/authoringTool/components/top-bar/top-bar.component.html - 27 + 28 Help src/assets/wise5/authoringTool/components/top-bar/top-bar.component.html - 43,45 + 44,46 User Menu src/assets/wise5/authoringTool/components/top-bar/top-bar.component.html - 48 + 49 src/assets/wise5/classroomMonitor/classroomMonitorComponents/shared/top-bar/top-bar.component.html @@ -9852,7 +9848,7 @@ Click "Cancel" to keep the invalid JSON open so you can fix it. Go Home src/assets/wise5/authoringTool/components/top-bar/top-bar.component.html - 73,75 + 74,76 src/assets/wise5/classroomMonitor/classroomMonitorComponents/shared/top-bar/top-bar.component.html @@ -9863,7 +9859,7 @@ Click "Cancel" to keep the invalid JSON open so you can fix it. Sign Out src/assets/wise5/authoringTool/components/top-bar/top-bar.component.html - 77,79 + 78,80 src/assets/wise5/classroomMonitor/classroomMonitorComponents/shared/top-bar/top-bar.component.html @@ -12098,7 +12094,7 @@ Click "Cancel" to keep the invalid JSON open so you can fix it.Select lesson or step src/assets/wise5/authoringTool/project-authoring/project-authoring.component.html - 90 + 80 @@ -12107,7 +12103,7 @@ Click "Cancel" to keep the invalid JSON open so you can fix it. src/assets/wise5/authoringTool/project-authoring/project-authoring.component.html - 101,103 + 91,93 @@ -12116,7 +12112,7 @@ Click "Cancel" to keep the invalid JSON open so you can fix it. src/assets/wise5/authoringTool/project-authoring/project-authoring.component.html - 111,113 + 101,103 @@ -12125,46 +12121,46 @@ Click "Cancel" to keep the invalid JSON open so you can fix it. src/assets/wise5/authoringTool/project-authoring/project-authoring.component.html - 121,123 + 111,113 Has Rubric src/assets/wise5/authoringTool/project-authoring/project-authoring.component.html - 130 + 120 Select lesson src/assets/wise5/authoringTool/project-authoring/project-authoring.component.html - 160 + 150 Select step src/assets/wise5/authoringTool/project-authoring/project-authoring.component.html - 186 + 176 src/assets/wise5/authoringTool/project-authoring/project-authoring.component.html - 222 + 212 Are you sure you want to delete the selected item? src/assets/wise5/authoringTool/project-authoring/project-authoring.component.ts - 99 + 93 Are you sure you want to delete the selected items? src/assets/wise5/authoringTool/project-authoring/project-authoring.component.ts - 100 + 94