Code cleaned up

This commit is contained in:
Piotr Pekala 2019-02-13 01:14:25 -08:00
parent 589886d6e9
commit 30c5e95170
13 changed files with 15 additions and 18 deletions

View File

@ -43,7 +43,7 @@ export class CloudNodesTemplatesComponent implements OnInit {
this.deleteComponent.deleteItem(template.name, template.template_id);
}
onDeleteEvent(deletedTemplateId: string) {
onDeleteEvent() {
this.getTemplates();
}
}

View File

@ -43,7 +43,7 @@ export class EthernetHubsTemplatesComponent implements OnInit {
this.deleteComponent.deleteItem(template.name, template.template_id);
}
onDeleteEvent(deletedTemplateId: string) {
onDeleteEvent() {
this.getTemplates();
}
}

View File

@ -43,7 +43,7 @@ export class EthernetSwitchesTemplatesComponent implements OnInit {
this.deleteComponent.deleteItem(template.name, template.template_id);
}
onDeleteEvent(deletedTemplateId: string) {
onDeleteEvent() {
this.getTemplates();
}
}

View File

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

View File

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

View File

@ -47,7 +47,7 @@ export class DockerTemplatesComponent implements OnInit {
this.deleteComponent.deleteItem(template.name, template.template_id);
}
onDeleteEvent(deletedTemplateId: string) {
onDeleteEvent() {
this.getTemplates();
}
}

View File

@ -44,7 +44,7 @@ export class IosTemplatesComponent implements OnInit {
this.deleteComponent.deleteItem(template.name, template.template_id);
}
onDeleteEvent(deletedTemplateId: string) {
onDeleteEvent() {
this.getTemplates();
}
}

View File

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

View File

@ -47,7 +47,7 @@ export class IouTemplatesComponent implements OnInit {
this.deleteComponent.deleteItem(template.name, template.template_id);
}
onDeleteEvent(deletedTemplateId: string) {
onDeleteEvent() {
this.getTemplates();
}
}

View File

@ -48,7 +48,7 @@ export class QemuVmTemplatesComponent implements OnInit {
this.deleteComponent.deleteItem(template.name, template.template_id);
}
onDeleteEvent(deletedTemplateId: string) {
onDeleteEvent() {
this.getTemplates();
}
}

View File

@ -48,7 +48,7 @@ export class VirtualBoxTemplatesComponent implements OnInit {
this.deleteComponent.deleteItem(template.name, template.template_id);
}
onDeleteEvent(deletedTemplateId: string) {
onDeleteEvent() {
this.getTemplates();
}
}

View File

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

View File

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