Skip to content

Commit 2ef900f

Browse files
Move AI tab between connection and rubric tabs.
1 parent af36c36 commit 2ef900f

3 files changed

Lines changed: 76 additions & 76 deletions

File tree

src/assets/wise5/components/discussion/edit-discussion-advanced/edit-discussion-advanced.component.html

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,6 @@
99
<edit-component-width [componentContent]="componentContent" />
1010
</div>
1111
</mat-tab>
12-
@if (aiEnabled) {
13-
<mat-tab>
14-
<ng-template mat-tab-label>
15-
<mat-icon>auto_awesome</mat-icon>&nbsp;<span i18n>AI</span>
16-
</ng-template>
17-
<edit-component-summarizer-system-prompt [componentContent]="component.content" />
18-
</mat-tab>
19-
}
2012
<mat-tab>
2113
<ng-template mat-tab-label>
2214
<mat-icon>visibility</mat-icon>&nbsp;<span i18n>Visibility</span>
@@ -36,6 +28,14 @@
3628
(connectedComponentsChanged)="connectedComponentsChanged($event)"
3729
/>
3830
</mat-tab>
31+
@if (aiEnabled) {
32+
<mat-tab>
33+
<ng-template mat-tab-label>
34+
<mat-icon>auto_awesome</mat-icon>&nbsp;<span i18n>AI</span>
35+
</ng-template>
36+
<edit-component-summarizer-system-prompt [componentContent]="component.content" />
37+
</mat-tab>
38+
}
3939
<mat-tab>
4040
<ng-template mat-tab-label>
4141
<mat-icon>message</mat-icon>&nbsp;<span i18n>Rubric</span>

src/assets/wise5/components/openResponse/edit-open-response-advanced/edit-open-response-advanced.component.html

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -57,19 +57,6 @@
5757
(connectedComponentsChanged)="connectedComponentsChanged($event)"
5858
/>
5959
</mat-tab>
60-
<mat-tab>
61-
<ng-template mat-tab-label>
62-
<mat-icon>message</mat-icon>&nbsp;<span i18n>Rubric</span>
63-
</ng-template>
64-
<ng-template matTabContent>
65-
<!-- lazy load needed for tinymce to work -->
66-
<edit-component-rubric [componentContent]="component.content" />
67-
</ng-template>
68-
</mat-tab>
69-
<mat-tab>
70-
<ng-template mat-tab-label> <mat-icon>sell</mat-icon>&nbsp;<span i18n>Tags</span></ng-template>
71-
<edit-component-tags [componentContent]="component.content" />
72-
</mat-tab>
7360
<mat-tab>
7461
<ng-template mat-tab-label>
7562
<mat-icon>auto_awesome</mat-icon>&nbsp;<span i18n>AI</span>
@@ -611,6 +598,19 @@
611598
</div>
612599
}
613600
</mat-tab>
601+
<mat-tab>
602+
<ng-template mat-tab-label>
603+
<mat-icon>message</mat-icon>&nbsp;<span i18n>Rubric</span>
604+
</ng-template>
605+
<ng-template matTabContent>
606+
<!-- lazy load needed for tinymce to work -->
607+
<edit-component-rubric [componentContent]="component.content" />
608+
</ng-template>
609+
</mat-tab>
610+
<mat-tab>
611+
<ng-template mat-tab-label> <mat-icon>sell</mat-icon>&nbsp;<span i18n>Tags</span></ng-template>
612+
<edit-component-tags [componentContent]="component.content" />
613+
</mat-tab>
614614
<mat-tab>
615615
<ng-template mat-tab-label> <mat-icon>code</mat-icon>&nbsp;<span i18n>JSON</span></ng-template>
616616
<edit-component-json [component]="component" />

0 commit comments

Comments
 (0)