From 9b6e927c7b14675944d9b3c80f304b10a2e2e632 Mon Sep 17 00:00:00 2001 From: Rajnikant Lodhi Date: Tue, 26 Jul 2022 09:18:03 +0530 Subject: [PATCH] Remove unused code and change string into Your selected files => Your selected projects --- ...confirmation-delete-all-projects.component.html | 2 +- .../components/projects/projects.component.html | 2 -- src/app/components/projects/projects.component.ts | 14 +------------- .../default-layout/default-layout.component.ts | 1 - src/app/services/project.service.ts | 1 - 5 files changed, 2 insertions(+), 18 deletions(-) diff --git a/src/app/components/projects/confirmation-delete-all-projects/confirmation-delete-all-projects.component.html b/src/app/components/projects/confirmation-delete-all-projects/confirmation-delete-all-projects.component.html index 24a2fe51..83090f3a 100644 --- a/src/app/components/projects/confirmation-delete-all-projects/confirmation-delete-all-projects.component.html +++ b/src/app/components/projects/confirmation-delete-all-projects/confirmation-delete-all-projects.component.html @@ -1,7 +1,7 @@

Do you want delete all projects?.

-

Your selected files

+

Your selected projects

{{i+1}}. {{file?.filename}}

diff --git a/src/app/components/projects/projects.component.html b/src/app/components/projects/projects.component.html index 00dd536e..73b8f436 100644 --- a/src/app/components/projects/projects.component.html +++ b/src/app/components/projects/projects.component.html @@ -2,8 +2,6 @@

Projects

- diff --git a/src/app/components/projects/projects.component.ts b/src/app/components/projects/projects.component.ts index 29ba473d..d1c41224 100644 --- a/src/app/components/projects/projects.component.ts +++ b/src/app/components/projects/projects.component.ts @@ -69,18 +69,6 @@ export class ProjectsComponent implements OnInit { this.projectService.projectListSubject.subscribe(() => this.refresh()); } - goToPreferences() { - this.router - .navigate(['/controller', this.controller.id, 'preferences']) - .catch((error) => this.toasterService.error('Cannot navigate to the preferences')); - } - - goToSystemStatus() { - this.router - .navigate(['/controller', this.controller.id, 'systemstatus']) - .catch((error) => this.toasterService.error('Cannot navigate to the system status')); - } - refresh() { this.projectService.list(this.controller).subscribe( (projects: Project[]) => { @@ -209,7 +197,7 @@ export class ProjectsComponent implements OnInit { if (isAllfilesdeleted) { this.unChecked() this.refresh() - this.toasterService.success('All files deleted'); + this.toasterService.success('All projects deleted'); } else { this.unChecked() this.refresh() diff --git a/src/app/layouts/default-layout/default-layout.component.ts b/src/app/layouts/default-layout/default-layout.component.ts index 571ad42f..d0940b74 100644 --- a/src/app/layouts/default-layout/default-layout.component.ts +++ b/src/app/layouts/default-layout/default-layout.component.ts @@ -41,7 +41,6 @@ export class DefaultLayoutComponent implements OnInit, OnDestroy { private controllerService: ControllerService ) { this.router.events.subscribe((data) => { - debugger if (data instanceof NavigationEnd) { this.controllerId = this.route.children[0].snapshot.paramMap.get("controller_id"); } diff --git a/src/app/services/project.service.ts b/src/app/services/project.service.ts index 49035b3a..2573aace 100644 --- a/src/app/services/project.service.ts +++ b/src/app/services/project.service.ts @@ -73,7 +73,6 @@ export class ProjectService { } links(controller:Controller , project_id: string) { - debugger return this.httpController.get(controller, `/projects/${project_id}/links`); }