From efa579ce0ff764130e529e23c8d938182b180734 Mon Sep 17 00:00:00 2001 From: josephmyers <43733878+josephmyers@users.noreply.github.com> Date: Tue, 28 Jan 2025 14:40:57 +0700 Subject: [PATCH] SF-3126 Combine Add Draft dialogs (#2954) --- .../project-select.component.ts | 1 + .../draft-apply-dialog.component.html | 30 +++---- .../draft-apply-dialog.component.ts | 37 +++++--- .../draft-preview-books.component.html | 4 +- .../draft-preview-books.component.spec.ts | 84 ++++++++++--------- .../draft-preview-books.component.ts | 39 +++------ .../src/assets/i18n/non_checking_en.json | 8 -- 7 files changed, 101 insertions(+), 102 deletions(-) diff --git a/src/SIL.XForge.Scripture/ClientApp/src/app/project-select/project-select.component.ts b/src/SIL.XForge.Scripture/ClientApp/src/app/project-select/project-select.component.ts index 4556a102e7..6c3d05c817 100644 --- a/src/SIL.XForge.Scripture/ClientApp/src/app/project-select/project-select.component.ts +++ b/src/SIL.XForge.Scripture/ClientApp/src/app/project-select/project-select.component.ts @@ -94,6 +94,7 @@ export class ProjectSelectComponent extends SubscriptionDisposable implements Co } @Input() set value(id: string) { + if (this.paratextIdControl?.value.paratextId === id) return; const project = this.projects?.find(p => p.paratextId === id) || this.resources?.find(r => r.paratextId === id) || diff --git a/src/SIL.XForge.Scripture/ClientApp/src/app/translate/draft-generation/draft-apply-dialog/draft-apply-dialog.component.html b/src/SIL.XForge.Scripture/ClientApp/src/app/translate/draft-generation/draft-apply-dialog/draft-apply-dialog.component.html index e018dfdcf9..d344e1b1de 100644 --- a/src/SIL.XForge.Scripture/ClientApp/src/app/translate/draft-generation/draft-apply-dialog/draft-apply-dialog.component.html +++ b/src/SIL.XForge.Scripture/ClientApp/src/app/translate/draft-generation/draft-apply-dialog/draft-apply-dialog.component.html @@ -6,35 +6,35 @@