From e78d7586567de6931b77e10ec767aca6280637de Mon Sep 17 00:00:00 2001 From: shamoon <4887959+shamoon@users.noreply.github.com> Date: Thu, 10 Oct 2024 20:38:24 -0700 Subject: [PATCH] Fix: resolve some silly frontend test things --- .../storage-path-edit-dialog.component.ts | 1 - .../document-detail/document-detail.component.spec.ts | 2 ++ src-ui/src/app/components/manage/mail/mail.component.ts | 2 -- 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src-ui/src/app/components/common/edit-dialog/storage-path-edit-dialog/storage-path-edit-dialog.component.ts b/src-ui/src/app/components/common/edit-dialog/storage-path-edit-dialog/storage-path-edit-dialog.component.ts index a530502dc..214f08f11 100644 --- a/src-ui/src/app/components/common/edit-dialog/storage-path-edit-dialog/storage-path-edit-dialog.component.ts +++ b/src-ui/src/app/components/common/edit-dialog/storage-path-edit-dialog/storage-path-edit-dialog.component.ts @@ -117,7 +117,6 @@ export class StoragePathEditDialogComponent this.foundDocuments$ = concat( of([]), // default items this.documentsInput$.pipe( - tap(() => console.log('searching')), distinctUntilChanged(), takeUntil(this.unsubscribeNotifier), tap(() => (this.loading = true)), diff --git a/src-ui/src/app/components/document-detail/document-detail.component.spec.ts b/src-ui/src/app/components/document-detail/document-detail.component.spec.ts index c9ba5dc6a..24ef2ffad 100644 --- a/src-ui/src/app/components/document-detail/document-detail.component.spec.ts +++ b/src-ui/src/app/components/document-detail/document-detail.component.spec.ts @@ -85,6 +85,7 @@ import { PdfViewerModule } from 'ng2-pdf-viewer' import { DataType } from 'src/app/data/datatype' import { provideHttpClient, withInterceptorsFromDi } from '@angular/common/http' import { TagService } from 'src/app/services/rest/tag.service' +import { TextAreaComponent } from '../common/input/textarea/textarea.component' const doc: Document = { id: 3, @@ -183,6 +184,7 @@ describe('DocumentDetailComponent', () => { SplitConfirmDialogComponent, RotateConfirmDialogComponent, DeletePagesConfirmDialogComponent, + TextAreaComponent, ], imports: [ RouterModule.forRoot(routes), diff --git a/src-ui/src/app/components/manage/mail/mail.component.ts b/src-ui/src/app/components/manage/mail/mail.component.ts index 0e72d7b92..f1c30674b 100644 --- a/src-ui/src/app/components/manage/mail/mail.component.ts +++ b/src-ui/src/app/components/manage/mail/mail.component.ts @@ -66,8 +66,6 @@ export class MailComponent .subscribe({ next: (r) => { this.mailAccounts = r.results - console.log(this.mailAccounts, this.oAuthAccountId) - if (this.oAuthAccountId) { this.editMailAccount( this.mailAccounts.find(