diff --git a/src/SIL.XForge.Scripture/ClientApp/src/app/translate/editor/editor-draft/editor-draft.component.spec.ts b/src/SIL.XForge.Scripture/ClientApp/src/app/translate/editor/editor-draft/editor-draft.component.spec.ts index 777e8e42af..81b7100eba 100644 --- a/src/SIL.XForge.Scripture/ClientApp/src/app/translate/editor/editor-draft/editor-draft.component.spec.ts +++ b/src/SIL.XForge.Scripture/ClientApp/src/app/translate/editor/editor-draft/editor-draft.component.spec.ts @@ -16,7 +16,6 @@ import { TestRealtimeModule } from 'xforge-common/test-realtime.module'; import { configureTestingModule, TestTranslocoModule } from 'xforge-common/test-utils'; import { SFProjectProfileDoc } from '../../../core/models/sf-project-profile-doc'; import { SF_TYPE_REGISTRY } from '../../../core/models/sf-type-registry'; -import { TextDocService } from '../../../core/text-doc.service'; import { SharedModule } from '../../../shared/shared.module'; import { EDITOR_READY_TIMEOUT } from '../../../shared/text/text.component'; import { DraftSegmentMap } from '../../draft-generation/draft-generation'; @@ -29,7 +28,6 @@ const mockActivatedProjectService = mock(ActivatedProjectService); const mockDraftHandlingService = mock(DraftHandlingService); const mockI18nService = mock(I18nService); const mockDialogService = mock(DialogService); -const mockTextDocService = mock(TextDocService); describe('EditorDraftComponent', () => { let fixture: ComponentFixture; @@ -52,8 +50,7 @@ describe('EditorDraftComponent', () => { { provide: DraftHandlingService, useMock: mockDraftHandlingService }, { provide: I18nService, useMock: mockI18nService }, { provide: OnlineStatusService, useClass: TestOnlineStatusService }, - { provide: DialogService, useMock: mockDialogService }, - { provide: TextDocService, useMock: mockTextDocService } + { provide: DialogService, useMock: mockDialogService } ] })); diff --git a/src/SIL.XForge.Scripture/ClientApp/src/app/translate/editor/editor-draft/editor-draft.component.ts b/src/SIL.XForge.Scripture/ClientApp/src/app/translate/editor/editor-draft/editor-draft.component.ts index 8f0f65bb4f..34b611f78b 100644 --- a/src/SIL.XForge.Scripture/ClientApp/src/app/translate/editor/editor-draft/editor-draft.component.ts +++ b/src/SIL.XForge.Scripture/ClientApp/src/app/translate/editor/editor-draft/editor-draft.component.ts @@ -27,7 +27,6 @@ import { filterNullish } from 'xforge-common/util/rxjs-util'; import { isString } from '../../../../type-utils'; import { Delta, TextDocId } from '../../../core/models/text-doc'; import { SFProjectService } from '../../../core/sf-project.service'; -import { TextDocService } from '../../../core/text-doc.service'; import { TextComponent } from '../../../shared/text/text.component'; import { DraftGenerationService } from '../../draft-generation/draft-generation.service'; import { DraftHandlingService } from '../../draft-generation/draft-handling.service'; @@ -68,8 +67,7 @@ export class EditorDraftComponent implements AfterViewInit, OnChanges { readonly fontService: FontService, private readonly i18n: I18nService, private readonly projectService: SFProjectService, - readonly onlineStatusService: OnlineStatusService, - private readonly textDocService: TextDocService + readonly onlineStatusService: OnlineStatusService ) {} ngOnChanges(): void { diff --git a/src/SIL.XForge.Scripture/ClientApp/src/assets/i18n/non_checking_en.json b/src/SIL.XForge.Scripture/ClientApp/src/assets/i18n/non_checking_en.json index 5c5f1ea622..aa59894413 100644 --- a/src/SIL.XForge.Scripture/ClientApp/src/assets/i18n/non_checking_en.json +++ b/src/SIL.XForge.Scripture/ClientApp/src/assets/i18n/non_checking_en.json @@ -183,7 +183,6 @@ "generate_draft_button": "Generate draft", "generate_forward_translation_drafts_header": "Generate translation drafts", "generate_new_draft": "New draft", - "go_to_draft_viewer": "Go to [link:draftViewerUrl]draft viewer[/link] to preview and apply the generated draft to chapters of your choice.", "improved_learning_rate_notice": "Drafting is now much faster! Most drafts will now take about {1}{2} hours to complete instead of {3}{4}. Draft quality should be about the same as before, but please {5}contact us{6} if you notice any issues.", "info_alert_different_additional_training_and_source_language": "The language for your additional training text ({{ additionalTrainingSourceLanguageDisplayName }}) must be the same as the training source language ({{ alternateTrainingSourceLanguageDisplayName }}). Select a different additional training text on the [link:projectSettingsUrl]settings page[/link].", "info_alert_different_training_and_source_language": "The language for your alternate training text ({{ alternateTrainingSourceLanguageDisplayName }}) must be the same as the source language ({{ sourceLanguageDisplayName }}). Select a different alternate training text on the [link:projectSettingsUrl]settings page[/link].",