From dfd557f2a20ee43f0f918a454333367d4226c990 Mon Sep 17 00:00:00 2001 From: NikoAnderson Date: Thu, 18 Jan 2024 16:40:37 -0500 Subject: [PATCH] "console cleanup, download structure search link" --- src/app/core/admin/admin.service.ts | 2 -- .../import-dialog/import-dialog.component.ts | 1 - .../download-monitor/download-monitor.component.ts | 2 ++ src/app/core/facets-manager/facets-manager.component.ts | 2 -- .../structure/substance-form-structure-card.component.ts | 2 -- .../substance-summary-card.component.html | 6 +++--- .../substance-summary-card.component.ts | 1 - .../core/substances-browse/substances-browse.component.ts | 1 - 8 files changed, 5 insertions(+), 12 deletions(-) diff --git a/src/app/core/admin/admin.service.ts b/src/app/core/admin/admin.service.ts index 124685d54..697048fb5 100644 --- a/src/app/core/admin/admin.service.ts +++ b/src/app/core/admin/admin.service.ts @@ -114,7 +114,6 @@ export class AdminService extends BaseHttpService { } public loadData(form: any) { - console.log(form); const url = `${(this.configService.configData && this.configService.configData.apiBaseUrl) || '/' }api/v1/admin/load`; return this.http.post< any >(url, form); } @@ -149,7 +148,6 @@ export class AdminService extends BaseHttpService { }*/ public previewAdapter(id: string, file: any, adapter?: any, limit?: any): Observable< any > { - console.log(file); let url = `${(this.configService.configData && this.configService.configData.apiBaseUrl) || '/' }api/v1/substances/import/${id}/@preview`; if (limit) { if(limit === 'all') { diff --git a/src/app/core/admin/import-management/import-dialog/import-dialog.component.ts b/src/app/core/admin/import-management/import-dialog/import-dialog.component.ts index 7c139a852..ff9e5f27b 100644 --- a/src/app/core/admin/import-management/import-dialog/import-dialog.component.ts +++ b/src/app/core/admin/import-management/import-dialog/import-dialog.component.ts @@ -49,7 +49,6 @@ export class ImportDialogComponent implements OnInit { } ngOnInit(): void { - console.log(this.fieldList); } switchAction(action?: any) { diff --git a/src/app/core/auth/user-downloads/download-monitor/download-monitor.component.ts b/src/app/core/auth/user-downloads/download-monitor/download-monitor.component.ts index c62aa0ef2..2cc8343f6 100644 --- a/src/app/core/auth/user-downloads/download-monitor/download-monitor.component.ts +++ b/src/app/core/auth/user-downloads/download-monitor/download-monitor.component.ts @@ -94,6 +94,8 @@ export class DownloadMonitorComponent implements OnInit, OnDestroy { } else if ((url.indexOf('v1/adverseeventpt') > 0) || (url.indexOf('v1/adverseeventdme') > 0) || (url.indexOf('v1/adverseeventcvm') > 0)) { this.type = 'adverseevent'; + } else if ((url.indexOf('structure') > 0)) { + this.type = 'structure'; // set to not browse since links are not valid } else { this.type = 'browse'; } diff --git a/src/app/core/facets-manager/facets-manager.component.ts b/src/app/core/facets-manager/facets-manager.component.ts index 9a84bd85c..261595ff4 100644 --- a/src/app/core/facets-manager/facets-manager.component.ts +++ b/src/app/core/facets-manager/facets-manager.component.ts @@ -391,7 +391,6 @@ export class FacetsManagerComponent implements OnInit, OnDestroy, AfterViewInit newFacets.unshift(newFacets.splice(position, 1)[0]); } }); - console.log(newFacets); this.facets = newFacets; this.setShowAdvancedFacetStates(); this.facetsLoaded.emit(this.facets.length); @@ -743,7 +742,6 @@ export class FacetsManagerComponent implements OnInit, OnDestroy, AfterViewInit data.view = 'single'; data['activeName'] = list.split(':')[1]; } - console.log(data); const dialogRef = this.dialog.open(UserQueryListDialogComponent, { width: '850px', autoFocus: false, diff --git a/src/app/core/substance-form/structure/substance-form-structure-card.component.ts b/src/app/core/substance-form/structure/substance-form-structure-card.component.ts index 293b0e8b0..5c4d95d5e 100644 --- a/src/app/core/substance-form/structure/substance-form-structure-card.component.ts +++ b/src/app/core/substance-form/structure/substance-form-structure-card.component.ts @@ -58,7 +58,6 @@ export class SubstanceFormStructureCardComponent extends SubstanceFormBase imple if (this.substanceType === 'polymer') { this.menuLabelUpdate.emit('Idealized Structure'); const idealStructSubscription = this.substanceFormStructureService.substanceIdealizedStructure.subscribe(structure => { - console.log(structure); if (structure) { this.structure = structure; } else { @@ -75,7 +74,6 @@ export class SubstanceFormStructureCardComponent extends SubstanceFormBase imple } else { this.menuLabelUpdate.emit('Structure'); const structSubscription = this.substanceFormStructureService.substanceStructure.subscribe(structure => { - console.log(structure); this.structure = structure; this.loadStructure(); diff --git a/src/app/core/substances-browse/substance-summary-card/substance-summary-card.component.html b/src/app/core/substances-browse/substance-summary-card/substance-summary-card.component.html index 758bc1792..dc9b9f9f2 100644 --- a/src/app/core/substances-browse/substance-summary-card/substance-summary-card.component.html +++ b/src/app/core/substances-browse/substance-summary-card/substance-summary-card.component.html @@ -11,7 +11,7 @@
Add to List - + {{list}} @@ -21,8 +21,8 @@ - - + + diff --git a/src/app/core/substances-browse/substance-summary-card/substance-summary-card.component.ts b/src/app/core/substances-browse/substance-summary-card/substance-summary-card.component.ts index 10946e141..2964b2ef3 100644 --- a/src/app/core/substances-browse/substance-summary-card/substance-summary-card.component.ts +++ b/src/app/core/substances-browse/substance-summary-card/substance-summary-card.component.ts @@ -80,7 +80,6 @@ export class SubstanceSummaryCardComponent implements OnInit { ngOnInit() { this.overlayContainer = this.overlayContainerService.getContainerElement(); - console.log(this.userLists); this.authService.hasAnyRolesAsync('Updater', 'SuperUpdater', 'Approver', 'admin').pipe(take(1)).subscribe(response => { if (response) { diff --git a/src/app/core/substances-browse/substances-browse.component.ts b/src/app/core/substances-browse/substances-browse.component.ts index 2a220fbad..926d0f21d 100644 --- a/src/app/core/substances-browse/substances-browse.component.ts +++ b/src/app/core/substances-browse/substances-browse.component.ts @@ -253,7 +253,6 @@ export class SubstancesBrowseComponent implements OnInit, AfterViewInit, OnDestr if (auth) { this.isLoggedIn = true; this.bulkSearchService.getBulkSearchLists().subscribe( result => { - console.log(result); this.userLists = result.lists; }, error => {