Skip to content

Commit 10e1c38

Browse files
authored
Remove remaining auto draft terminology from source code (#3538)
1 parent f4314c3 commit 10e1c38

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ <h1>
4343
<!-- prettier-ignore -->
4444
@if (i.id == null) {{{ i.text }}}
4545
@if (i.id === 1) {
46-
<a [href]="urlService.autoDrafts" target="_blank">{{ i.text }}</a>
46+
<a [href]="urlService.understandingDrafts" target="_blank">{{ i.text }}</a>
4747
}
4848
}
4949
</p>

src/SIL.XForge.Scripture/ClientApp/src/app/translate/editor/editor.component.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4069,7 +4069,7 @@ describe('EditorComponent', () => {
40694069
}));
40704070
});
40714071

4072-
describe('updateAutoDraftTabVisibility', () => {
4072+
describe('updateDraftTabVisibility', () => {
40734073
it('should add the draft preview tab to source when available and "showSource" is true', fakeAsync(() => {
40744074
const env = new TestEnvironment(env => {
40754075
Object.defineProperty(env.component, 'showSource', { get: () => true });

src/SIL.XForge.Scripture/ClientApp/src/app/translate/editor/editor.component.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1476,7 +1476,7 @@ export class EditorComponent extends DataLoadingComponent implements OnDestroy,
14761476
}
14771477
}
14781478

1479-
private async updateAutoDraftTabVisibility(): Promise<void> {
1479+
private async updateDraftTabVisibility(): Promise<void> {
14801480
const chapter: Chapter | undefined = this.text?.chapters.find(c => c.number === this.chapter);
14811481
const hasDraft: boolean = chapter?.hasDraft ?? false;
14821482
const draftApplied: boolean = chapter?.draftApplied ?? false;
@@ -2062,7 +2062,7 @@ export class EditorComponent extends DataLoadingComponent implements OnDestroy,
20622062
this.chapter$.next(chapter);
20632063
await this.changeText();
20642064
this.toggleNoteThreadVerses(true);
2065-
await this.updateAutoDraftTabVisibility();
2065+
await this.updateDraftTabVisibility();
20662066
await this.updateBiblicalTermsTabVisibility();
20672067
}
20682068

src/SIL.XForge.Scripture/ClientApp/src/xforge-common/external-url-class.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ export class ExternalUrls {
2323
return localeUrlPortion === '' ? this.options.helpUrl : `${this.options.helpUrl}/${localeUrlPortion}`;
2424
}
2525

26-
get autoDrafts(): string {
26+
get understandingDrafts(): string {
2727
return this.helps + '/understanding-drafts';
2828
}
2929

0 commit comments

Comments
 (0)