diff --git a/src/app/core/services/private-catalogs.service.ts b/src/app/core/services/private-catalogs.service.ts index 2e187e6b6e4312d4d6d1090d28523560a70658ed..0bba7d4000f5ed02dc19f492adfe928f3f76762a 100644 --- a/src/app/core/services/private-catalogs.service.ts +++ b/src/app/core/services/private-catalogs.service.ts @@ -299,7 +299,6 @@ export class PrivateCatalogsService { parentId: comment.parentId, }, }; - console.log({ commentObj }); return this._httpSharedService.post(url, undefined, commentObj).pipe( map((res) => res.response_body), catchError((error) => { @@ -695,9 +694,6 @@ export class PrivateCatalogsService { solution.solutionId; return this._httpSharedService.put(url, undefined, req).pipe( - tap((res) => { - console.log({ res }); - }), catchError((error) => { throw error; }), @@ -713,9 +709,6 @@ export class PrivateCatalogsService { const url = apiConfig.apiBackendURL + apiConfig.urlCreateTags; return this._httpSharedService.post(url, undefined, req).pipe( - tap((res) => { - console.log({ res }); - }), catchError((error) => { throw error; }), @@ -732,9 +725,6 @@ export class PrivateCatalogsService { tag; return this._httpSharedService.delete(url).pipe( - tap((res) => { - console.log({ res }); - }), catchError((error) => { throw error; }), @@ -751,9 +741,6 @@ export class PrivateCatalogsService { tag; return this._httpSharedService.put(url).pipe( - tap((res) => { - console.log({ res }); - }), catchError((error) => { throw error; }), @@ -770,9 +757,6 @@ export class PrivateCatalogsService { }; return this._httpSharedService.put(url, undefined, req).pipe( - tap((res) => { - console.log({ res }); - }), map((res) => res.response_body.tags), catchError((error) => { throw error; @@ -836,9 +820,6 @@ export class PrivateCatalogsService { documentId; return this._httpSharedService.delete(url).pipe( - tap((res) => { - console.log({ res }); - }), catchError((error) => { throw error; }), diff --git a/src/app/core/services/public-solutions.service.ts b/src/app/core/services/public-solutions.service.ts index 1e3ee329782f0f7c633ce9b626069ab081e3caca..98a265ceba1e53d4b919b514955b1ae433465f2a 100644 --- a/src/app/core/services/public-solutions.service.ts +++ b/src/app/core/services/public-solutions.service.ts @@ -305,7 +305,6 @@ export class PublicSolutionsService { apiConfig.urlGetSolutionDescription(revisionId, selectedCatalogId); return this._httpSharedService.get(url, undefined).pipe( - tap((res) => console.log({ res })), catchError((error) => { throw error; }), diff --git a/src/app/features/dashboard/my-models/my-models.component.ts b/src/app/features/dashboard/my-models/my-models.component.ts index e4e8c0c09385b860d1c660d3635336d6863dafa7..88b80009aabc55c1d993f645fea01446dbc17755 100644 --- a/src/app/features/dashboard/my-models/my-models.component.ts +++ b/src/app/features/dashboard/my-models/my-models.component.ts @@ -230,7 +230,6 @@ export class MyModelsComponent implements OnInit { (response) => { this.favoriteSolutionsMap[solutionId] = !this.favoriteSolutionsMap[solutionId]; - console.log({ response }); // Handle response if needed }, @@ -242,7 +241,6 @@ export class MyModelsComponent implements OnInit { this.privateCatalogsService.deleteFavorite(dataObj).subscribe( (response) => { // Handle response if needed - console.log({ response }); this.favoriteSolutionsMap[solutionId] = !this.favoriteSolutionsMap[solutionId]; }, @@ -324,7 +322,6 @@ export class MyModelsComponent implements OnInit { this.isFirstLoad = false; this.selectedTags = selectedTags; this.loadPublicSolutions(); - console.log({ selectedTags }); } handleSelectedCategoriesChange(selectedCategories: string[]): void { diff --git a/src/app/features/dashboard/on-boarding-model/on-boarding-model.component.ts b/src/app/features/dashboard/on-boarding-model/on-boarding-model.component.ts index 7aba16c592a3d12d6a868e7959c385b13a9818d1..883e55c53de28ba7d14714be093e618b2bbd7e1d 100644 --- a/src/app/features/dashboard/on-boarding-model/on-boarding-model.component.ts +++ b/src/app/features/dashboard/on-boarding-model/on-boarding-model.component.ts @@ -315,10 +315,6 @@ export class OnBoardingModelComponent implements OnInit { res.totalElements > 0 && res.publicSolutions.some((pb) => pb.active); this.modelNameExists = isNameTaken; - console.log( - 'existed model', - res.publicSolutions.filter((pb) => pb.active), - ); return isNameTaken ? { nameTaken: true } : null; }), catchError((error) => { @@ -340,7 +336,6 @@ export class OnBoardingModelComponent implements OnInit { ) .subscribe({ next: (res) => { - console.log({ res }); this.solutionTrackId = res; const alert: Alert = { message: @@ -352,7 +347,6 @@ export class OnBoardingModelComponent implements OnInit { .getMessagingStatus(this.userId, this.solutionTrackId) .subscribe({ next: (resp) => { - console.log({ resp }); this.messageStatuses = resp; if (resp) { const dialogRef: MatDialogRef<ConfirmActionComponent> = diff --git a/src/app/features/marketplace/marketplace.component.ts b/src/app/features/marketplace/marketplace.component.ts index da672de7f55a0c19652a8f1f913e46e73a81a591..8627b6c451f2ed3a2e7c2cdb5ea86159631117b2 100644 --- a/src/app/features/marketplace/marketplace.component.ts +++ b/src/app/features/marketplace/marketplace.component.ts @@ -164,7 +164,6 @@ export class MarketplaceComponent { (response) => { this.favoriteSolutionsMap[solutionId] = !this.favoriteSolutionsMap[solutionId]; - console.log({ response }); // Handle response if needed }, @@ -176,7 +175,6 @@ export class MarketplaceComponent { this.privateCatalogsService.deleteFavorite(dataObj).subscribe( (response) => { // Handle response if needed - console.log({ response }); this.favoriteSolutionsMap[solutionId] = !this.favoriteSolutionsMap[solutionId]; }, diff --git a/src/app/shared/common/shared-item-base/shared-item-base.component.ts b/src/app/shared/common/shared-item-base/shared-item-base.component.ts index 5274bad74ca5d7df82860d8621308a9c3e45e86b..c41c13517c6af11d99f6f90777874fd4016098af 100644 --- a/src/app/shared/common/shared-item-base/shared-item-base.component.ts +++ b/src/app/shared/common/shared-item-base/shared-item-base.component.ts @@ -36,7 +36,6 @@ export abstract class SharedItemBaseComponent { @Output() favoriteClicked = new EventEmitter<string>(); onFavoriteClick(solutionId: string): void { - console.log('SharedItemBaseComponent', solutionId); this.favoriteClicked.emit(solutionId); } diff --git a/src/app/shared/components/create-edit-license-profile/create-edit-license-profile.component.ts b/src/app/shared/components/create-edit-license-profile/create-edit-license-profile.component.ts index 6328626a39d43480257c442091503b6e1ab3d55a..646bf06ceadd658bbb55fdc7b65b4b48870a96ba 100644 --- a/src/app/shared/components/create-edit-license-profile/create-edit-license-profile.component.ts +++ b/src/app/shared/components/create-edit-license-profile/create-edit-license-profile.component.ts @@ -254,7 +254,6 @@ export class CreateEditLicenseProfileComponent implements OnInit { } private handleUploadError(error: any) { - console.log({ error }); // Error handling logic here const messageError = error.error.response_detail ? error.error.response_detail diff --git a/src/app/shared/components/delete-model-page/delete-model-page.component.html b/src/app/shared/components/delete-model-page/delete-model-page.component.html index 2c32aa8b1543b31bd2dd2c88e0652e2c336175ea..c0f2873bdf04e4d65367fffd5a2da0393ee8f831 100644 --- a/src/app/shared/components/delete-model-page/delete-model-page.component.html +++ b/src/app/shared/components/delete-model-page/delete-model-page.component.html @@ -1,12 +1,12 @@ <div class="workflow-right-header workflow-header">Delete Model</div> -<div style="display: flex; flex-direction: column; padding: 20px; gap: 20px"> +<div class="content-container"> <p> Are you sure that you want to delete this model and all of its revisions, public or private? </p> <div> <button - style="width: 20%" + class="delete-button" color="primary" mat-raised-button (click)="onDeleteModelClick()" diff --git a/src/app/shared/components/delete-model-page/delete-model-page.component.scss b/src/app/shared/components/delete-model-page/delete-model-page.component.scss index e69de29bb2d1d6434b8b29ae775ad8c2e48c5391..975fe90885befeed5e48eec533e5ccdb37fa4a63 100644 --- a/src/app/shared/components/delete-model-page/delete-model-page.component.scss +++ b/src/app/shared/components/delete-model-page/delete-model-page.component.scss @@ -0,0 +1,10 @@ +.content-container { + display: flex; + flex-direction: column; + padding: 20px; + gap: 20px; +} + +.delete-button { + width: 20%; +} diff --git a/src/app/shared/components/delete-model-page/delete-model-page.component.ts b/src/app/shared/components/delete-model-page/delete-model-page.component.ts index 95f04df357fc919fbbd19c29b6d6f74046d9dd2f..579ebf49e2f73df3aa43e39189be38271622e9e7 100644 --- a/src/app/shared/components/delete-model-page/delete-model-page.component.ts +++ b/src/app/shared/components/delete-model-page/delete-model-page.component.ts @@ -70,7 +70,6 @@ export class DeleteModelPageComponent implements OnInit { .getSolutionDetails(solutionId, revisionId) .subscribe((res) => { this.solution = res; - console.log('solution', this.solution); }); } } diff --git a/src/app/shared/components/delete-user-dialog-confirmation-action/delete-user-dialog-confirmation-action.component.html b/src/app/shared/components/delete-user-dialog-confirmation-action/delete-user-dialog-confirmation-action.component.html index de2757cd2b6a10a83742a2e3e192c7cc43e6216e..46b26c143e44eb66165cf66819a6428976aee2e3 100644 --- a/src/app/shared/components/delete-user-dialog-confirmation-action/delete-user-dialog-confirmation-action.component.html +++ b/src/app/shared/components/delete-user-dialog-confirmation-action/delete-user-dialog-confirmation-action.component.html @@ -1,5 +1,5 @@ <mat-toolbar class="dialog-header"> - <div style="display: flex; align-items: center; padding: 0; flex: 1 1 auto"> + <div class="dialog-title"> <h2>{{ title }}</h2> </div> <button @@ -20,7 +20,7 @@ </div></mat-dialog-content > <mat-toolbar class="form-footer"> - <button mat-dialog-close mat-raised-button style="margin-right: auto"> + <button mat-dialog-close mat-raised-button class="cancel-button"> Cancel </button> <button color="primary" mat-raised-button (click)="confirm()">Confirm</button> diff --git a/src/app/shared/components/delete-user-dialog-confirmation-action/delete-user-dialog-confirmation-action.component.scss b/src/app/shared/components/delete-user-dialog-confirmation-action/delete-user-dialog-confirmation-action.component.scss index 2b6f64051f7c62dbef7c6d7a548206673cf5fe87..af74d033b23bc4a58f437a371a08913bed3892ff 100644 --- a/src/app/shared/components/delete-user-dialog-confirmation-action/delete-user-dialog-confirmation-action.component.scss +++ b/src/app/shared/components/delete-user-dialog-confirmation-action/delete-user-dialog-confirmation-action.component.scss @@ -65,3 +65,14 @@ height: 82px; font-size: 14px; } + +.cancel-button { + margin-right: auto; +} + +.dialog-title { + display: flex; + align-items: center; + padding: 0; + flex: 1 1 auto; +} diff --git a/src/app/shared/components/manage-publisher-authors-page/manage-publisher-authors-page.component.scss b/src/app/shared/components/manage-publisher-authors-page/manage-publisher-authors-page.component.scss index 9b8b091344f898f0aa9305528fbfebe747a44631..2a0ae0ef2d929b0ef09789f2a73c82bf66deb61f 100644 --- a/src/app/shared/components/manage-publisher-authors-page/manage-publisher-authors-page.component.scss +++ b/src/app/shared/components/manage-publisher-authors-page/manage-publisher-authors-page.component.scss @@ -57,7 +57,7 @@ display: flex; flex-direction: column; padding: 10px; - width: 100%; + width: 40%; gap: 20px; } @@ -108,6 +108,8 @@ flex-direction: column; gap: 20px; height: 100%; + padding: 10px; + width: 60%; } .add-author-button { diff --git a/src/app/shared/components/manage-publisher-authors-page/manage-publisher-authors-page.component.ts b/src/app/shared/components/manage-publisher-authors-page/manage-publisher-authors-page.component.ts index 91967e7e7d1da6884adcb2825d30129860084252..0b2e149ce199d1e05bfd70313482e5b4c68fb4a6 100644 --- a/src/app/shared/components/manage-publisher-authors-page/manage-publisher-authors-page.component.ts +++ b/src/app/shared/components/manage-publisher-authors-page/manage-publisher-authors-page.component.ts @@ -215,9 +215,7 @@ export class ManagePublisherAuthorsPageComponent implements OnInit { ); } }, - error: (error) => { - console.log({ error }); - }, + error: (error) => {}, }); } @@ -303,12 +301,9 @@ export class ManagePublisherAuthorsPageComponent implements OnInit { let authorsList = this.sharedDataService.authorListValue; if (!authorsList) { - console.log('no model details'); - // Properly initialize if it's not yet set authorsList = []; } - // Safely assign new values this.sharedDataService.authorList = authors; } } diff --git a/src/app/shared/components/model-details-artifacts/model-details-artifacts.component.ts b/src/app/shared/components/model-details-artifacts/model-details-artifacts.component.ts index eaa97834e5e5fae9ea2536346a32f9b6e25daacd..4aa5ad16253a6c71648b61f47ad9f91866e4575d 100644 --- a/src/app/shared/components/model-details-artifacts/model-details-artifacts.component.ts +++ b/src/app/shared/components/model-details-artifacts/model-details-artifacts.component.ts @@ -80,9 +80,7 @@ export class ModelDetailsArtifactsComponent implements OnInit { (resp) => { this.artifactDownload = resp; }, - (error) => { - console.log(error); - }, + (error) => {}, ); } @@ -100,7 +98,6 @@ export class ModelDetailsArtifactsComponent implements OnInit { ]).subscribe({ next: ([userDetails, jwtToken]) => { if (!userDetails || !jwtToken) { - console.log('User details or JWT token not found, requiring login.'); this.showAdvancedLogin(); return; } @@ -111,18 +108,15 @@ export class ModelDetailsArtifactsComponent implements OnInit { .performSVScan(this.solutionId, this.revisionId, 'download') .subscribe({ next: (response) => { - console.log('Initiating Docker image download...'); window.location.href = `${apiConfig.apiBackendURL}/api/downloads/${this.solutionId}?artifactId=${artifactId}&revisionId=${this.revisionId}&userId=${userId}&jwtToken=${jwtToken}`; }, error: (error) => { console.error('Error during SV scan:', error); - console.log('An exception occurred during SV scan'); }, }); }, error: (error) => { console.error('Error fetching user details or JWT token:', error); - console.log('Failed to authenticate user details or JWT token.'); }, }); } diff --git a/src/app/shared/components/model-details-description/model-details-description.component.ts b/src/app/shared/components/model-details-description/model-details-description.component.ts index 97f314fb300b349549ad8c612bf7a8909de6b56d..d5b40c9dbabd27b6dd9a8f42f115d5750d0da4e8 100644 --- a/src/app/shared/components/model-details-description/model-details-description.component.ts +++ b/src/app/shared/components/model-details-description/model-details-description.component.ts @@ -100,9 +100,7 @@ export class ModelDetailsDescriptionComponent { this.artifactDownload = resp; this.processArtifacts(this.artifactDownload); }, - (error) => { - console.log(error); - }, + (error) => {}, ); } diff --git a/src/app/shared/components/model-details-license-profile/model-details-license-profile.component.ts b/src/app/shared/components/model-details-license-profile/model-details-license-profile.component.ts index e6b15c7f88f8cb8711801e2fdb81f74287a2d005..741803576d4d696595ced8dfe8c75bc17c772b0b 100644 --- a/src/app/shared/components/model-details-license-profile/model-details-license-profile.component.ts +++ b/src/app/shared/components/model-details-license-profile/model-details-license-profile.component.ts @@ -58,14 +58,6 @@ export class ModelDetailsLicenseProfileComponent implements OnInit { this.subscription.add( this.sharedDataService.licenseProfile$.subscribe((profile) => { this.modelLicense = profile; - /** - * this.cd.detectChanges(); // Manually trigger change detection - */ - if (profile) { - console.log('License profile updated:', profile); - } else { - console.log('License profile reset to null'); - } }), ); this.subscription.add( diff --git a/src/app/shared/components/model-management/model-management.component.ts b/src/app/shared/components/model-management/model-management.component.ts index 7abb9899a35d625abfc40699b567e3a698180eca..478d9d3e2886527f56c676e101afc6690de98886 100644 --- a/src/app/shared/components/model-management/model-management.component.ts +++ b/src/app/shared/components/model-management/model-management.component.ts @@ -116,7 +116,6 @@ export class ModelManagementComponent implements OnInit { this.publicSolutionsService .getSolutionDetails(solutionId, revisionId) .subscribe((res) => { - console.log({ res }); const revisionsList = this.getRevisionsList(res); this.selectedRevision = revisionsList[0]; this.setRevisionInService(this.selectedRevision); diff --git a/src/app/shared/components/publish-to-marketplace-page/publish-to-marketplace-page.component.ts b/src/app/shared/components/publish-to-marketplace-page/publish-to-marketplace-page.component.ts index bb865631ed25bf8a64ae6e6d28e75b9187fc9dd7..9dba9f7b8e213d4d43b829f2b45769379fca0100 100644 --- a/src/app/shared/components/publish-to-marketplace-page/publish-to-marketplace-page.component.ts +++ b/src/app/shared/components/publish-to-marketplace-page/publish-to-marketplace-page.component.ts @@ -249,20 +249,6 @@ export class PublishToMarketplacePageComponent implements OnInit { }, (err: any) => {}, ); - - /* this.sharedDataService.authorList$.subscribe((authors) => { - if (authors) { - if (authors?.length === 0) { - const alert: Alert = { - message: - 'You cannot publish the model without entering the author name. Please add author name in the "Manage Publisher/Authors" page to publish it.', - type: AlertType.Error, - }; - - this.alertService.notify(alert); - } - } - }); */ } convertToolkitTypesToCodes( @@ -275,7 +261,6 @@ export class PublishToMarketplacePageComponent implements OnInit { } onChangeCatalog(event: any) { - console.log({ event }); this.selectedCatalog = event.value; this.publicSolutionsService .getSolutionDescription(this.revisionId, this.selectedCatalog.catalogId) @@ -284,36 +269,21 @@ export class PublishToMarketplacePageComponent implements OnInit { this.publishToMarketPlaceForm.patchValue({ description: res.response_body.description, }); - console.log('description function call', res); - console.log( - 'form value', - this.publishToMarketPlaceForm.value.description, - ); - error: (error: any) => console.log({ error }); + error: (error: any) => {}; }, }); - console.log({ event }); } - submit() { - console.log(this.publishToMarketPlaceForm.value); - } + submit() {} - created(event: any) { - // tslint:disable-next-line:no-console - console.log(event); - } + created(event: any) {} focus($event: any) { - // tslint:disable-next-line:no-console - console.log('focus', $event); this.focused = true; this.blured = false; } blur($event: any) { - // tslint:disable-next-line:no-console - console.log('blur', $event); this.focused = false; this.blured = true; } @@ -323,7 +293,6 @@ export class PublishToMarketplacePageComponent implements OnInit { onAddEditLicenseProfile() {} getFilenameExtension(filename: string): string { - // Split the filename by dot (.) and get the last element of the array const parts = filename.split('.'); return parts[parts.length - 1]; } @@ -373,10 +342,7 @@ export class PublishToMarketplacePageComponent implements OnInit { }, }); - dialogRef.afterClosed().subscribe((result) => { - // This will be executed when the dialog is closed - // Reload data to fetch the updated license profile - }); + dialogRef.afterClosed().subscribe((result) => {}); } onClickUploadDocumentFile() { @@ -394,10 +360,7 @@ export class PublishToMarketplacePageComponent implements OnInit { }, }); - dialogRef.afterClosed().subscribe((result) => { - // This will be executed when the dialog is closed - // Reload data to fetch the updated license profile - }); + dialogRef.afterClosed().subscribe((result) => {}); } onLicenseProfileClick() { @@ -418,7 +381,6 @@ export class PublishToMarketplacePageComponent implements OnInit { } addTag(event: MatChipInputEvent): void { - // console.log() const value = { tag: (event.value || '').trim() }; // Add our keyword @@ -435,7 +397,6 @@ export class PublishToMarketplacePageComponent implements OnInit { } onAddEditDescription(htmlVal: string) { - console.log({ htmlVal }); this.publishToMarketPlaceForm.patchValue({ description: htmlVal }); this.privateCatalogsService .updateCompanyDescription( @@ -449,9 +410,7 @@ export class PublishToMarketplacePageComponent implements OnInit { this.publishToMarketPlaceForm.patchValue({ description: res.response_body.description, }); - error: (error: any) => { - console.log(error); - }; + error: (error: any) => {}; }, }); } @@ -471,17 +430,13 @@ export class PublishToMarketplacePageComponent implements OnInit { }, }); - dialogRef.afterClosed().subscribe((result) => { - // This will be executed when the dialog is closed - // Reload data to fetch the updated license profile - }); + dialogRef.afterClosed().subscribe((result) => {}); } private processSideEffects(data: ModelData): void { this.revisionId = data.revisionId; this.solutionId = data.solutionId; - console.log({ data }); if (data.picture) this.publishToMarketPlaceForm.patchValue({ image: data.picture }); if (data.solution?.modelTypeName && data.solution.modelType) { @@ -489,18 +444,8 @@ export class PublishToMarketplacePageComponent implements OnInit { name: data.solution?.modelTypeName, code: data.solution.modelType, }); - console.log( - 'category', - this.publishToMarketPlaceForm.get('category')?.value, - ); } - /* if (data.solution?.tookitType && data.solution.tookitTypeName) - this.publishToMarketPlaceForm.controls['toolkitType'].setValue({ - name: data.solution.tookitTypeName, - code: data.solution.tookitType, - }); */ - if (data.solution?.tookitType && data.solution.tookitTypeName) this.publishToMarketPlaceForm.controls['toolkitType'].patchValue({ name: data.solution.tookitTypeName, @@ -537,7 +482,6 @@ export class PublishToMarketplacePageComponent implements OnInit { catalog: solutionCatalog, }); } - console.log('form value', this.publishToMarketPlaceForm.value); } editModelName(name: string) { @@ -546,12 +490,8 @@ export class PublishToMarketplacePageComponent implements OnInit { name, }; this.privateCatalogsService.updateSolution(updatedSolution).subscribe({ - next: (res) => { - console.log('solution updated successfully ', res); - }, - error: (error) => { - console.log({ error }); - }, + next: (res) => {}, + error: (error) => {}, }); } @@ -559,7 +499,6 @@ export class PublishToMarketplacePageComponent implements OnInit { const version = this.solution.revisions.find( (rv) => rv.revisionId === this.revisionId, )?.version; - console.log({ version }); const dialogRef: MatDialogRef<UpdateModelNameDialogComponent> = this.dialog.open(UpdateModelNameDialogComponent, { data: { @@ -571,10 +510,7 @@ export class PublishToMarketplacePageComponent implements OnInit { }, }); - dialogRef.afterClosed().subscribe((result) => { - // This will be executed when the dialog is closed - // Reload data to fetch the updated license profile - }); + dialogRef.afterClosed().subscribe((result) => {}); } unpublishModel() {} diff --git a/src/app/shared/components/rich-text-editor-dialog/rich-text-editor-dialog.component.ts b/src/app/shared/components/rich-text-editor-dialog/rich-text-editor-dialog.component.ts index ef6d0e4756741b94b64f9d0cec3c05638623d84d..4d57c1ab8e156afebd146de01e261a52cb9a23c9 100644 --- a/src/app/shared/components/rich-text-editor-dialog/rich-text-editor-dialog.component.ts +++ b/src/app/shared/components/rich-text-editor-dialog/rich-text-editor-dialog.component.ts @@ -65,7 +65,6 @@ export class RichTextEditorDialogComponent implements OnInit { } confirm() { - console.log('html', this.form.value); this.data.dataKey.action(this.form.value.html).subscribe({ next: (res: any) => { this.alertService.notify( @@ -84,7 +83,5 @@ export class RichTextEditorDialogComponent implements OnInit { }); } - onClickChange(event: any) { - console.log({ event }); - } + onClickChange(event: any) {} } diff --git a/src/app/shared/components/share-with-team-page/share-with-team-page.component.html b/src/app/shared/components/share-with-team-page/share-with-team-page.component.html index b822efc8d8b96a98f43c0b3ed976e820694e5026..c0682701063ea251af29fd435a7ff5e0844a8e88 100644 --- a/src/app/shared/components/share-with-team-page/share-with-team-page.component.html +++ b/src/app/shared/components/share-with-team-page/share-with-team-page.component.html @@ -1,14 +1,14 @@ <div class="workflow-right-header workflow-header">Share With Team</div> -<div style="display: flex; flex-direction: column; gap: 20px; margin: 24px"> +<div class="share-with-team-container"> <div> <p class="manage-models"> Sharing a model gives co-authorship to that person. They will be able to edit, share and publish, just as a model owner can. </p> </div> - <mat-divider style="color: #dbcbe8"></mat-divider> - <div style="display: flex; flex-direction: column"> - <div style="display: flex; flex-direction: row" class="manage-models"> + <mat-divider class="divider-color"></mat-divider> + <div class="flex-column"> + <div class="manage-models flex-row"> <span>This Model shared with below team members</span>|<span class="green" > @@ -16,13 +16,11 @@ > </div> <div> - <mat-chip-set style="justify-content: space-evenly !important"> + <mat-chip-set class="chips-set"> @for (sharedUser of sharedWith; track sharedUser) { - <mat-chip (removed)="removeUser(sharedUser)" style="width: 80px"> - <div style="display: flex; flex-direction: column; width: 100%"> - <div - style="display: flex; justify-content: flex-end; width: 100%" - > + <mat-chip (removed)="removeUser(sharedUser)" class="chip-user"> + <div class="flex-column full-with"> + <div class="cancel-icon-button"> <button matChipRemove [attr.aria-label]="'remove ' + sharedUser" @@ -31,17 +29,10 @@ </button> </div> - <div - style=" - display: flex; - flex-direction: column; - align-items: center; - width: 100%; - " - > + <div class="user-profile-black-image-container"> <img - style="width: 30px; height: 30px" src="../../../../assets/images/user-profile-black.png" + class="user-profile-black-image" /> <span class="team-user-box" @@ -63,17 +54,14 @@ </div> <mat-divider></mat-divider> - <div - style="display: flex; flex-direction: row; gap: 4px" - class="manage-models" - > + <div class="manage-models solution-version-container"> <span class="purple">Sharing "{{ solution?.name }}" </span> |<span> Version - {{ selectedRevision.version }}</span> | <gp-solution-id [solutionId]="solutionId"></gp-solution-id> </div> <form> - <mat-form-field class="example-chip-list"> + <mat-form-field class="full-with"> <mat-label>Find a user to share with</mat-label> <mat-chip-grid #chipGrid> @for (user of users; track user) { @@ -98,7 +86,7 @@ > @for (user of filteredUsers | async; track user) { <mat-option [value]="user" - ><span style="overflow: hidden; white-space: nowrap" + ><span class="autocomplete-option" >{{ user.firstName }} {{ user.lastName }}</span ></mat-option > @@ -108,11 +96,11 @@ </form> <button - style="width: 80px" [disabled]="users.length <= 0" color="primary" mat-raised-button (click)="OnclickShareButton()" + class="share-button" > Share </button> diff --git a/src/app/shared/components/share-with-team-page/share-with-team-page.component.scss b/src/app/shared/components/share-with-team-page/share-with-team-page.component.scss index 78a13a7982d6850cb67922f95cdb85fff928f75b..fa793cf7eb66098e23723fbe8bdf846c56bb817c 100644 --- a/src/app/shared/components/share-with-team-page/share-with-team-page.component.scss +++ b/src/app/shared/components/share-with-team-page/share-with-team-page.component.scss @@ -1,7 +1,3 @@ -.example-chip-list { - width: 100%; -} - .mat-divider { border-top-color: #dbcbe8 !important; border-top-width: 1px !important; @@ -72,3 +68,69 @@ display: flex; justify-content: flex-end; } + +.share-with-team-container { + display: flex; + flex-direction: column; + gap: 20px; + margin: 24px; +} + +.flex-column { + display: flex; + flex-direction: column; +} + +.flex-row { + display: flex; + flex-direction: row; +} + +.divider-color { + color: #dbcbe8; +} + +.chips-set { + justify-content: space-evenly !important; +} + +.chip-user { + width: 80px; +} + +.full-with { + width: 100%; +} + +.user-profile-black-image { + width: 30px; + height: 30px; +} + +.user-profile-black-image-container { + display: flex; + flex-direction: column; + align-items: center; + width: 100%; +} + +.cancel-icon-button { + display: flex; + justify-content: flex-end; + width: 100%; +} + +.solution-version-container { + display: flex; + flex-direction: row; + gap: 4px; +} + +.share-button { + width: 80px; +} + +.autocomplete-option { + overflow: hidden; + white-space: nowrap; +} diff --git a/src/app/shared/components/upload-license-profile/upload-license-profile.component.ts b/src/app/shared/components/upload-license-profile/upload-license-profile.component.ts index 14c7d6d49cb257cf59f32cc40f65e0f30446f8cb..b887c62363bb66f5a15d23dff9340ef5bc5a1f9b 100644 --- a/src/app/shared/components/upload-license-profile/upload-license-profile.component.ts +++ b/src/app/shared/components/upload-license-profile/upload-license-profile.component.ts @@ -165,8 +165,6 @@ export class UploadLicenseProfileComponent implements OnInit, OnDestroy { } private handleUploadError(error: any) { - console.log({ error }); - // Error handling logic here this.modelUploadError = true; if (error.error) { const messageError = error.error.response_detail ?? error.error; @@ -192,12 +190,7 @@ export class UploadLicenseProfileComponent implements OnInit, OnDestroy { reader.onload = () => { try { this.licenseProfile = JSON.parse(reader.result as string); - console.log('License Profile Loaded:', this.licenseProfile); - // Proceed with any operations now that the license profile is loaded - } catch (e) { - console.error('Error parsing the license profile:', e); - // Handle errors in reading or parsing the file - } + } catch (e) {} }; reader.onerror = () => { console.error('Error reading the file:', reader.error);