From 23d126014ce0bb22b159864f5ed889df163e867e Mon Sep 17 00:00:00 2001 From: Hiroki Terashima Date: Thu, 23 May 2024 16:04:24 -0700 Subject: [PATCH] refactor(SaveStarterStateComponent): Convert to standalone (#1811) --- .../preview-component-dialog.component.html | 2 +- .../preview-component.module.ts | 8 ++----- .../save-starter-state.component.html | 10 ++++---- .../save-starter-state.component.ts | 24 +++++++++++-------- src/messages.xlf | 12 +++++----- 5 files changed, 28 insertions(+), 28 deletions(-) diff --git a/src/assets/wise5/authoringTool/components/preview-component-dialog/preview-component-dialog.component.html b/src/assets/wise5/authoringTool/components/preview-component-dialog/preview-component-dialog.component.html index 31a06f0b2f7..fedd86dbb2c 100644 --- a/src/assets/wise5/authoringTool/components/preview-component-dialog/preview-component-dialog.component.html +++ b/src/assets/wise5/authoringTool/components/preview-component-dialog/preview-component-dialog.component.html @@ -5,7 +5,7 @@

Preview Component

class="notice-bg-bg" [component]="component" [starterState]="starterState" - > + /> diff --git a/src/assets/wise5/authoringTool/components/preview-component/preview-component.module.ts b/src/assets/wise5/authoringTool/components/preview-component/preview-component.module.ts index 2a4efd47a8f..f3c80877da5 100644 --- a/src/assets/wise5/authoringTool/components/preview-component/preview-component.module.ts +++ b/src/assets/wise5/authoringTool/components/preview-component/preview-component.module.ts @@ -6,12 +6,8 @@ import { ComponentStudentModule } from '../../../../../assets/wise5/components/c import { StudentTeacherCommonModule } from '../../../../../app/student-teacher-common.module'; @NgModule({ - declarations: [ - PreviewComponentButtonComponent, - PreviewComponentDialogComponent, - SaveStarterStateComponent - ], + declarations: [PreviewComponentButtonComponent, PreviewComponentDialogComponent], exports: [PreviewComponentButtonComponent], - imports: [StudentTeacherCommonModule, ComponentStudentModule] + imports: [SaveStarterStateComponent, StudentTeacherCommonModule, ComponentStudentModule] }) export class PreviewComponentModule {} diff --git a/src/assets/wise5/authoringTool/components/save-starter-state/save-starter-state.component.html b/src/assets/wise5/authoringTool/components/save-starter-state/save-starter-state.component.html index c39dae1b34a..b0f1da904ed 100644 --- a/src/assets/wise5/authoringTool/components/save-starter-state/save-starter-state.component.html +++ b/src/assets/wise5/authoringTool/components/save-starter-state/save-starter-state.component.html @@ -4,19 +4,19 @@