mirror of
https://github.com/GNS3/gns3-web-ui.git
synced 2025-04-26 22:09:41 +00:00
Code cleaned up
This commit is contained in:
parent
589886d6e9
commit
30c5e95170
src/app/components/preferences
built-in
cloud-nodes/cloud-nodes-templates
ethernet-hubs/ethernet-hubs-templates
ethernet-switches/ethernet-switches-templates
common/delete-confirmation-dialog
docker
docker-template-details
docker-templates
dynamips/ios-templates
ios-on-unix
qemu/qemu-vm-templates
virtual-box/virtual-box-templates
vmware/vmware-templates
vpcs/vpcs-templates
@ -43,7 +43,7 @@ export class CloudNodesTemplatesComponent implements OnInit {
|
||||
this.deleteComponent.deleteItem(template.name, template.template_id);
|
||||
}
|
||||
|
||||
onDeleteEvent(deletedTemplateId: string) {
|
||||
onDeleteEvent() {
|
||||
this.getTemplates();
|
||||
}
|
||||
}
|
||||
|
@ -43,7 +43,7 @@ export class EthernetHubsTemplatesComponent implements OnInit {
|
||||
this.deleteComponent.deleteItem(template.name, template.template_id);
|
||||
}
|
||||
|
||||
onDeleteEvent(deletedTemplateId: string) {
|
||||
onDeleteEvent() {
|
||||
this.getTemplates();
|
||||
}
|
||||
}
|
||||
|
@ -43,7 +43,7 @@ export class EthernetSwitchesTemplatesComponent implements OnInit {
|
||||
this.deleteComponent.deleteItem(template.name, template.template_id);
|
||||
}
|
||||
|
||||
onDeleteEvent(deletedTemplateId: string) {
|
||||
onDeleteEvent() {
|
||||
this.getTemplates();
|
||||
}
|
||||
}
|
||||
|
@ -1,8 +1,7 @@
|
||||
<span>Are you sure you want to delete template {{templateName}}?</span>
|
||||
<div mat-dialog-actions *ngIf="!isOpen">
|
||||
<div mat-dialog-actions>
|
||||
<button mat-button class="cancelButton" (click)="onNoClick()" color="accent">No</button>
|
||||
<button mat-button class="confirmButton" (click)="onYesClick()" tabindex="2" mat-raised-button color="primary">
|
||||
Yes
|
||||
</button>
|
||||
</div>
|
||||
<div mat-dialog-actions *ngIf="isOpen"><button mat-button (click)="onNoClick()" color="accent">Ok</button></div>
|
||||
|
2
src/app/components/preferences/docker/docker-template-details/docker-template-details.component.html
2
src/app/components/preferences/docker/docker-template-details/docker-template-details.component.html
@ -1,4 +1,4 @@
|
||||
<div class="content" [ngClass]="{ shadowed: isConfiguratorOpened || isSymbolSelectionOpened}">
|
||||
<div class="content" [ngClass]="{ shadowed: isSymbolSelectionOpened}">
|
||||
<div class="default-header">
|
||||
<div class="row">
|
||||
<h1 class="col">Docker image configuration</h1>
|
||||
|
@ -47,7 +47,7 @@ export class DockerTemplatesComponent implements OnInit {
|
||||
this.deleteComponent.deleteItem(template.name, template.template_id);
|
||||
}
|
||||
|
||||
onDeleteEvent(deletedTemplateId: string) {
|
||||
onDeleteEvent() {
|
||||
this.getTemplates();
|
||||
}
|
||||
}
|
||||
|
@ -44,7 +44,7 @@ export class IosTemplatesComponent implements OnInit {
|
||||
this.deleteComponent.deleteItem(template.name, template.template_id);
|
||||
}
|
||||
|
||||
onDeleteEvent(deletedTemplateId: string) {
|
||||
onDeleteEvent() {
|
||||
this.getTemplates();
|
||||
}
|
||||
}
|
||||
|
2
src/app/components/preferences/ios-on-unix/iou-template-details/iou-template-details.component.html
2
src/app/components/preferences/ios-on-unix/iou-template-details/iou-template-details.component.html
@ -1,4 +1,4 @@
|
||||
<div class="content" [ngClass]="{ shadowed: isConfiguratorOpened || isSymbolSelectionOpened}">
|
||||
<div class="content" [ngClass]="{ shadowed: isSymbolSelectionOpened}">
|
||||
<div class="default-header">
|
||||
<div class="row">
|
||||
<h1 class="col">IOU device configuration</h1>
|
||||
|
@ -47,7 +47,7 @@ export class IouTemplatesComponent implements OnInit {
|
||||
this.deleteComponent.deleteItem(template.name, template.template_id);
|
||||
}
|
||||
|
||||
onDeleteEvent(deletedTemplateId: string) {
|
||||
onDeleteEvent() {
|
||||
this.getTemplates();
|
||||
}
|
||||
}
|
||||
|
@ -48,7 +48,7 @@ export class QemuVmTemplatesComponent implements OnInit {
|
||||
this.deleteComponent.deleteItem(template.name, template.template_id);
|
||||
}
|
||||
|
||||
onDeleteEvent(deletedTemplateId: string) {
|
||||
onDeleteEvent() {
|
||||
this.getTemplates();
|
||||
}
|
||||
}
|
||||
|
2
src/app/components/preferences/virtual-box/virtual-box-templates/virtual-box-templates.component.ts
2
src/app/components/preferences/virtual-box/virtual-box-templates/virtual-box-templates.component.ts
@ -48,7 +48,7 @@ export class VirtualBoxTemplatesComponent implements OnInit {
|
||||
this.deleteComponent.deleteItem(template.name, template.template_id);
|
||||
}
|
||||
|
||||
onDeleteEvent(deletedTemplateId: string) {
|
||||
onDeleteEvent() {
|
||||
this.getTemplates();
|
||||
}
|
||||
}
|
||||
|
@ -23,8 +23,7 @@ export class VmwareTemplatesComponent implements OnInit {
|
||||
constructor(
|
||||
private route: ActivatedRoute,
|
||||
private serverService: ServerService,
|
||||
private vmwareService: VmwareService,
|
||||
private toasterService: ToasterService
|
||||
private vmwareService: VmwareService
|
||||
) {}
|
||||
|
||||
ngOnInit() {
|
||||
@ -50,7 +49,7 @@ export class VmwareTemplatesComponent implements OnInit {
|
||||
this.deleteComponent.deleteItem(template.name, template.template_id);
|
||||
}
|
||||
|
||||
onDeleteEvent(deletedTemplateId: string) {
|
||||
onDeleteEvent() {
|
||||
this.getTemplates();
|
||||
}
|
||||
}
|
||||
|
@ -23,8 +23,7 @@ export class VpcsTemplatesComponent implements OnInit {
|
||||
constructor(
|
||||
private route: ActivatedRoute,
|
||||
private serverService: ServerService,
|
||||
private vpcsService: VpcsService,
|
||||
private toasterService: ToasterService
|
||||
private vpcsService: VpcsService
|
||||
) {}
|
||||
|
||||
ngOnInit() {
|
||||
@ -50,7 +49,7 @@ export class VpcsTemplatesComponent implements OnInit {
|
||||
this.deleteComponent.deleteItem(template.name, template.template_id);
|
||||
}
|
||||
|
||||
onDeleteEvent(deletedTemplateId: string) {
|
||||
onDeleteEvent() {
|
||||
this.getTemplates();
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user