mirror of
https://github.com/GNS3/gns3-web-ui.git
synced 2025-02-28 04:02:32 +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">
|
<div *ngIf="!isDelete && !isUsedFiles">
|
||||||
<h1 mat-dialog-title>Do you want delete all projects?.</h1>
|
<h1 mat-dialog-title>Do you want delete all projects?.</h1>
|
||||||
<div mat-dialog-content>
|
<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>
|
<p *ngFor="let file of deleteData?.deleteFilesPaths; let i = index">{{i+1}}. {{file?.filename}}</p>
|
||||||
</div>
|
</div>
|
||||||
<div mat-dialog-actions align="end">
|
<div mat-dialog-actions align="end">
|
||||||
|
@ -2,8 +2,6 @@
|
|||||||
<div class="default-header">
|
<div class="default-header">
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<h1 class="col">Projects</h1>
|
<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">
|
<button class="col" mat-raised-button color="primary" (click)="addBlankProject()" class="add-button">
|
||||||
Add blank project
|
Add blank project
|
||||||
</button>
|
</button>
|
||||||
|
@ -69,18 +69,6 @@ export class ProjectsComponent implements OnInit {
|
|||||||
this.projectService.projectListSubject.subscribe(() => this.refresh());
|
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() {
|
refresh() {
|
||||||
this.projectService.list(this.controller).subscribe(
|
this.projectService.list(this.controller).subscribe(
|
||||||
(projects: Project[]) => {
|
(projects: Project[]) => {
|
||||||
@ -209,7 +197,7 @@ export class ProjectsComponent implements OnInit {
|
|||||||
if (isAllfilesdeleted) {
|
if (isAllfilesdeleted) {
|
||||||
this.unChecked()
|
this.unChecked()
|
||||||
this.refresh()
|
this.refresh()
|
||||||
this.toasterService.success('All files deleted');
|
this.toasterService.success('All projects deleted');
|
||||||
} else {
|
} else {
|
||||||
this.unChecked()
|
this.unChecked()
|
||||||
this.refresh()
|
this.refresh()
|
||||||
|
@ -41,7 +41,6 @@ export class DefaultLayoutComponent implements OnInit, OnDestroy {
|
|||||||
private controllerService: ControllerService
|
private controllerService: ControllerService
|
||||||
) {
|
) {
|
||||||
this.router.events.subscribe((data) => {
|
this.router.events.subscribe((data) => {
|
||||||
debugger
|
|
||||||
if (data instanceof NavigationEnd) {
|
if (data instanceof NavigationEnd) {
|
||||||
this.controllerId = this.route.children[0].snapshot.paramMap.get("controller_id");
|
this.controllerId = this.route.children[0].snapshot.paramMap.get("controller_id");
|
||||||
}
|
}
|
||||||
|
@ -73,7 +73,6 @@ export class ProjectService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
links(controller:Controller , project_id: string) {
|
links(controller:Controller , project_id: string) {
|
||||||
debugger
|
|
||||||
return this.httpController.get<Link[]>(controller, `/projects/${project_id}/links`);
|
return this.httpController.get<Link[]>(controller, `/projects/${project_id}/links`);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user