Remove unused code and change string into

Your selected files => Your selected projects
This commit is contained in:
Rajnikant Lodhi 2022-07-26 09:18:03 +05:30
parent 97a04a2fba
commit 9b6e927c7b
5 changed files with 2 additions and 18 deletions

View File

@ -1,7 +1,7 @@
<div *ngIf="!isDelete && !isUsedFiles">
<h1 mat-dialog-title>Do you want delete all projects?.</h1>
<div mat-dialog-content>
<p>Your selected files</p>
<p>Your selected projects</p>
<p *ngFor="let file of deleteData?.deleteFilesPaths; let i = index">{{i+1}}. {{file?.filename}}</p>
</div>
<div mat-dialog-actions align="end">

View File

@ -2,8 +2,6 @@
<div class="default-header">
<div class="row">
<h1 class="col">Projects</h1>
<!-- <button class="col" mat-raised-button (click)="goToSystemStatus()" class="add-button">Go to system status</button>
<button class="col" mat-raised-button (click)="goToPreferences()" class="add-button">Go to preferences</button> -->
<button class="col" mat-raised-button color="primary" (click)="addBlankProject()" class="add-button">
Add blank project
</button>

View File

@ -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()

View File

@ -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");
}

View File

@ -73,7 +73,6 @@ export class ProjectService {
}
links(controller:Controller , project_id: string) {
debugger
return this.httpController.get<Link[]>(controller, `/projects/${project_id}/links`);
}