Skip to content

Commit e509775

Browse files
authored
SF-3171 Add icons to draft generation steps buttons (#2989)
Added icons to draft generation steps
1 parent c463df6 commit e509775

File tree

1 file changed

+30
-6
lines changed

1 file changed

+30
-6
lines changed

src/SIL.XForge.Scripture/ClientApp/src/app/translate/draft-generation/draft-generation-steps/draft-generation-steps.component.html

Lines changed: 30 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,13 @@
1111
<app-notice type="error" mode="fill-dark">{{ t("confirm_codes_correct_to_continue") }}</app-notice>
1212
}
1313
<div class="button-strip">
14-
<button mat-stroked-button class="backout-button" (click)="cancel.emit()">{{ t("back") }}</button>
14+
<button mat-stroked-button class="backout-button" (click)="cancel.emit()">
15+
<mat-icon>chevron_{{ i18n.backwardDirectionWord }}</mat-icon>
16+
{{ t("back") }}
17+
</button>
1518
<button mat-flat-button (click)="tryAdvanceStep(); nextClickedOnLanguageVerification = true" color="primary">
1619
{{ t("next") }}
20+
<mat-icon iconPositionEnd>chevron_{{ i18n.forwardDirectionWord }}</mat-icon>
1721
</button>
1822
</div>
1923
</mat-step>
@@ -69,9 +73,13 @@ <h4 class="explanation">
6973
</app-notice>
7074
}
7175
<div class="button-strip">
72-
<button mat-stroked-button matStepperPrevious>{{ t("back") }}</button>
76+
<button mat-stroked-button matStepperPrevious>
77+
<mat-icon>chevron_{{ i18n.backwardDirectionWord }}</mat-icon>
78+
{{ t("back") }}
79+
</button>
7380
<button mat-flat-button (click)="tryAdvanceStep()" color="primary">
7481
{{ t("next") }}
82+
<mat-icon iconPositionEnd>chevron_{{ i18n.forwardDirectionWord }}</mat-icon>
7583
</button>
7684
</div>
7785
</mat-step>
@@ -150,7 +158,10 @@ <h2>{{ t("reference_books") }}</h2>
150158
</app-notice>
151159
}
152160
<div class="button-strip">
153-
<button mat-stroked-button matStepperPrevious>{{ t("back") }}</button>
161+
<button mat-stroked-button matStepperPrevious>
162+
<mat-icon>chevron_{{ i18n.backwardDirectionWord }}</mat-icon>
163+
{{ t("back") }}
164+
</button>
154165
<button
155166
mat-flat-button
156167
(click)="tryAdvanceStep()"
@@ -159,6 +170,7 @@ <h2>{{ t("reference_books") }}</h2>
159170
[disabled]="isStepsCompleted"
160171
>
161172
{{ t("next") }}
173+
<mat-icon iconPositionEnd>chevron_{{ i18n.forwardDirectionWord }}</mat-icon>
162174
</button>
163175
</div>
164176
</mat-step>
@@ -175,7 +187,10 @@ <h1 class="mat-headline-4">{{ t("choose_additional_training_data_files_title") }
175187
data-test-id="draft-stepper-training-data-files"
176188
></app-training-data-multi-select>
177189
<div class="button-strip">
178-
<button mat-stroked-button matStepperPrevious>{{ t("back") }}</button>
190+
<button mat-stroked-button matStepperPrevious>
191+
<mat-icon>chevron_{{ i18n.backwardDirectionWord }}</mat-icon>
192+
{{ t("back") }}
193+
</button>
179194
<button
180195
mat-flat-button
181196
(click)="tryAdvanceStep()"
@@ -184,6 +199,7 @@ <h1 class="mat-headline-4">{{ t("choose_additional_training_data_files_title") }
184199
[disabled]="isStepsCompleted"
185200
>
186201
{{ t("next") }}
202+
<mat-icon iconPositionEnd>chevron_{{ i18n.forwardDirectionWord }}</mat-icon>
187203
</button>
188204
</div>
189205
</mat-step>
@@ -201,7 +217,10 @@ <h1 class="mat-headline-4">{{ t("configure_advanced_settings_title") }}</h1>
201217
<app-notice icon="warning" type="warning" class="warning">{{ t("fast_training_warning") }}</app-notice>
202218
}
203219
<div class="button-strip">
204-
<button mat-stroked-button matStepperPrevious>{{ t("back") }}</button>
220+
<button mat-stroked-button matStepperPrevious>
221+
<mat-icon>chevron_{{ i18n.backwardDirectionWord }}</mat-icon>
222+
{{ t("back") }}
223+
</button>
205224
<button
206225
mat-flat-button
207226
(click)="tryAdvanceStep()"
@@ -210,6 +229,7 @@ <h1 class="mat-headline-4">{{ t("configure_advanced_settings_title") }}</h1>
210229
[disabled]="isStepsCompleted"
211230
>
212231
{{ t("next") }}
232+
<mat-icon iconPositionEnd>chevron_{{ i18n.forwardDirectionWord }}</mat-icon>
213233
</button>
214234
</div>
215235
</mat-step>
@@ -267,8 +287,12 @@ <h2>
267287
</mat-card>
268288

269289
<div class="button-strip">
270-
<button mat-stroked-button matStepperPrevious>{{ t("back") }}</button>
290+
<button mat-stroked-button matStepperPrevious>
291+
<mat-icon>chevron_{{ i18n.backwardDirectionWord }}</mat-icon>
292+
{{ t("back") }}
293+
</button>
271294
<button mat-flat-button (click)="tryAdvanceStep()" color="primary">
295+
<mat-icon class="mirror-rtl">auto_awesome</mat-icon>
272296
{{ t("generate_draft") }}
273297
</button>
274298
@if (isStepsCompleted) {

0 commit comments

Comments
 (0)