mirror of
https://github.com/GNS3/gns3-web-ui.git
synced 2025-03-22 11:35:15 +00:00
Code cleaned up
This commit is contained in:
parent
589886d6e9
commit
30c5e95170
@ -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>
|
||||
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
@ -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