From e31a6bfd1ec6dc27b5fcb0a1466e9ddaa82a13e7 Mon Sep 17 00:00:00 2001 From: Hiroki Terashima Date: Tue, 23 Jan 2024 16:32:36 -0800 Subject: [PATCH 1/2] Pass in ComponentContent to EditComponentPrompt instead of prompt. This will let us convert the input to TranslatableInput. --- .../edit-component-prompt.component.html | 2 +- .../edit-component-prompt.component.ts | 8 +++----- .../animation-authoring.component.html | 2 +- .../audio-oscillator-authoring.component.html | 2 +- .../concept-map-authoring.component.html | 2 +- .../dialog-guidance-authoring.component.html | 2 +- .../discussion-authoring.component.html | 2 +- .../draw/draw-authoring/draw-authoring.component.html | 2 +- .../graph/graph-authoring/graph-authoring.component.html | 2 +- .../label/label-authoring/label-authoring.component.html | 2 +- .../match/match-authoring/match-authoring.component.html | 2 +- .../multiple-choice-authoring.component.html | 2 +- .../open-response-authoring.component.html | 2 +- .../peer-chat-authoring.component.html | 2 +- .../show-group-work-authoring.component.html | 2 +- .../show-my-work-authoring.component.html | 2 +- .../summary-authoring/summary-authoring.component.html | 2 +- .../table/table-authoring/table-authoring.component.html | 2 +- 18 files changed, 20 insertions(+), 22 deletions(-) diff --git a/src/app/authoring-tool/edit-component-prompt/edit-component-prompt.component.html b/src/app/authoring-tool/edit-component-prompt/edit-component-prompt.component.html index 8e869467ba4..199a75829d4 100644 --- a/src/app/authoring-tool/edit-component-prompt/edit-component-prompt.component.html +++ b/src/app/authoring-tool/edit-component-prompt/edit-component-prompt.component.html @@ -2,7 +2,7 @@ Prompt - + + + Prompt + + + diff --git a/src/app/authoring-tool/edit-component-prompt/edit-component-prompt.component.ts b/src/app/authoring-tool/edit-component-prompt/edit-component-prompt.component.ts index 610edfc3011..510240641b7 100644 --- a/src/app/authoring-tool/edit-component-prompt/edit-component-prompt.component.ts +++ b/src/app/authoring-tool/edit-component-prompt/edit-component-prompt.component.ts @@ -3,7 +3,7 @@ import { ComponentContent } from '../../../assets/wise5/common/ComponentContent' @Component({ selector: 'edit-component-prompt', - styles: ['.prompt {width: 100%; }'], + styles: ['.prompt {width: 100%; mat-form-field { width:100%} }'], templateUrl: 'edit-component-prompt.component.html' }) export class EditComponentPrompt { diff --git a/src/messages.xlf b/src/messages.xlf index 9c51f4dd7e6..cd3cbc315e3 100644 --- a/src/messages.xlf +++ b/src/messages.xlf @@ -967,7 +967,7 @@ Click "Cancel" to keep the invalid JSON open so you can fix it.Prompt src/app/authoring-tool/edit-component-prompt/edit-component-prompt.component.html - 2 + 3 src/app/authoring-tool/edit-dynamic-prompt-rules/edit-dynamic-prompt-rules.component.html @@ -986,7 +986,7 @@ Click "Cancel" to keep the invalid JSON open so you can fix it.Enter Prompt Here src/app/authoring-tool/edit-component-prompt/edit-component-prompt.component.html - 7 + 8