Skip to content

Commit 523c6f9

Browse files
authored
SF-3318 Skip prompt when no changes made on draft source page (#3155)
1 parent c724719 commit 523c6f9

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

src/SIL.XForge.Scripture/ClientApp/src/app/translate/draft-generation/draft-sources/draft-sources.component.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -219,6 +219,9 @@ export class DraftSourcesComponent extends DataLoadingComponent {
219219
index: number,
220220
paratextId: string | undefined
221221
): void {
222+
// When still loading projects, the project selectors will temporarily set the value to null
223+
if (!this.isLoaded) return;
224+
222225
const selectedProject: SelectableProject | null =
223226
this.projects?.find(p => p.paratextId === paratextId) ??
224227
this.resources?.find(r => r.paratextId === paratextId) ??

src/SIL.XForge.Scripture/ClientApp/src/assets/i18n/non_checking_en.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,7 @@
278278
"close": "Close",
279279
"configure_draft_sources": "Configure draft sources",
280280
"confirm_language_codes": "Please confirm that the language codes are correct before saving.",
281-
"discard_changes_confirmation": "Are you sure you want leave the page with unsaved changes?",
281+
"discard_changes_confirmation": "Are you sure you want to leave the page with unsaved changes?",
282282
"draft_source": "Draft source",
283283
"generate_draft_from_language_model": "Generate draft from language model",
284284
"language_code": "Language code: ",

0 commit comments

Comments
 (0)