mirror of
https://github.com/GNS3/gns3-web-ui.git
synced 2025-02-27 19:55:38 +00:00
Remove unused code and change string into
Your selected files => Your selected projects
This commit is contained in:
parent
97a04a2fba
commit
9b6e927c7b
@ -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">
|
||||
|
@ -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>
|
||||
|
@ -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()
|
||||
|
@ -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");
|
||||
}
|
||||
|
@ -73,7 +73,6 @@ export class ProjectService {
|
||||
}
|
||||
|
||||
links(controller:Controller , project_id: string) {
|
||||
debugger
|
||||
return this.httpController.get<Link[]>(controller, `/projects/${project_id}/links`);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user