Skip to content

Commit b5aaa0c

Browse files
committed
Fix drafting step refering to wrong project
1 parent 76bce97 commit b5aaa0c

2 files changed

Lines changed: 8 additions & 1 deletion

File tree

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ <h1>{{ t("draft_books.title") }}</h1>
4949
<h2
5050
[innerHTML]="
5151
i18n.translateAndInsertTags('new_draft.draft_books.subtitle', {
52-
project: targetProjectDisplayName,
52+
project: sourceProjectDisplayName,
5353
sourceLanguage: sourceLanguageDisplay,
5454
targetLanguage: targetLanguageDisplay
5555
})

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

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -944,6 +944,13 @@ export class NewDraftComponent {
944944
return projectData != null ? projectLabel(projectData) : '';
945945
}
946946

947+
get sourceProjectDisplayName(): string {
948+
const draftingSource = this.logicHandler.sources?.draftingSources[0];
949+
const result = draftingSource == null ? '' : projectLabel(draftingSource);
950+
console.log(result);
951+
return result;
952+
}
953+
947954
get targetShortName(): string {
948955
return this.activatedProjectService.projectDoc?.data?.shortName ?? '';
949956
}

0 commit comments

Comments
 (0)