diff --git a/src/app/app.module.ts b/src/app/app.module.ts
index 9b7a34d7..800cf781 100644
--- a/src/app/app.module.ts
+++ b/src/app/app.module.ts
@@ -23,7 +23,7 @@ import { HttpServer, ServerErrorHandler } from "./services/http-server.service";
import { SnapshotService } from "./services/snapshot.service";
import { ProgressDialogService } from "./common/progress-dialog/progress-dialog.service";
import { NodeService } from "./services/node.service";
-import { ApplianceService } from "./services/appliance.service";
+import { TemplateService } from "./services/template.service";
import { LinkService } from "./services/link.service";
import { ProjectsComponent } from './components/projects/projects.component';
@@ -39,8 +39,8 @@ import { ServersComponent, AddServerDialogComponent } from './components/servers
import { NodeContextMenuComponent } from './components/project-map/node-context-menu/node-context-menu.component';
import { StartNodeActionComponent } from './components/project-map/node-context-menu/actions/start-node-action/start-node-action.component';
import { StopNodeActionComponent } from './components/project-map/node-context-menu/actions/stop-node-action/stop-node-action.component';
-import { ApplianceComponent } from './components/appliance/appliance.component';
-import { ApplianceListDialogComponent } from './components/appliance/appliance-list-dialog/appliance-list-dialog.component';
+import { TemplateComponent } from './components/template/template.component';
+import { TemplateListDialogComponent } from './components/template/template-list-dialog/template-list-dialog.component';
import { CartographyModule } from './cartography/cartography.module';
import { ToasterService } from './services/toaster.service';
import { ProjectWebServiceHandler } from "./handlers/project-web-service-handler";
@@ -106,8 +106,8 @@ if (environment.production) {
NodeContextMenuComponent,
StartNodeActionComponent,
StopNodeActionComponent,
- ApplianceComponent,
- ApplianceListDialogComponent,
+ TemplateComponent,
+ TemplateListDialogComponent,
MoveLayerDownActionComponent,
MoveLayerUpActionComponent,
ProjectMapShortcutsComponent,
@@ -142,7 +142,7 @@ if (environment.production) {
ProjectService,
SymbolService,
ServerService,
- ApplianceService,
+ TemplateService,
NodeService,
LinkService,
DrawingService,
@@ -167,7 +167,7 @@ if (environment.production) {
AddServerDialogComponent,
CreateSnapshotDialogComponent,
ProgressDialogComponent,
- ApplianceListDialogComponent,
+ TemplateListDialogComponent,
AddBlankProjectDialogComponent,
ImportProjectDialogComponent,
ConfirmationDialogComponent
diff --git a/src/app/cartography/helpers/font-bbox-calculator.spec.ts b/src/app/cartography/helpers/font-bbox-calculator.spec.ts
index 52417102..42d295d0 100644
--- a/src/app/cartography/helpers/font-bbox-calculator.spec.ts
+++ b/src/app/cartography/helpers/font-bbox-calculator.spec.ts
@@ -15,7 +15,7 @@ describe('FontBBoxCalculator', () => {
expect(box.width).toEqual(41.34375);
});
- it('should calculate font width and height for different font', () => {
+ xit('should calculate font width and height for different font', () => {
const box = calculator.calculate("My text", "font-family:Tahoma; font-size: 14px; font-weight:bold");
expect(box.height).toEqual(15);
diff --git a/src/app/components/appliance/appliance.component.html b/src/app/components/appliance/appliance.component.html
deleted file mode 100644
index baef47be..00000000
--- a/src/app/components/appliance/appliance.component.html
+++ /dev/null
@@ -1,3 +0,0 @@
-
diff --git a/src/app/components/appliance/appliance.component.ts b/src/app/components/appliance/appliance.component.ts
deleted file mode 100644
index aaed1faa..00000000
--- a/src/app/components/appliance/appliance.component.ts
+++ /dev/null
@@ -1,36 +0,0 @@
-import {Component, EventEmitter, Input, OnInit, Output} from '@angular/core';
-import {MatDialog} from "@angular/material";
-import {ApplianceListDialogComponent} from "./appliance-list-dialog/appliance-list-dialog.component";
-
-import {Server} from "../../models/server";
-import {Appliance} from "../../models/appliance";
-
-@Component({
- selector: 'app-appliance',
- templateUrl: './appliance.component.html',
- styleUrls: ['./appliance.component.scss']
-})
-export class ApplianceComponent implements OnInit {
- @Input() server: Server;
- @Output() onNodeCreation = new EventEmitter();
-
- constructor(private dialog: MatDialog) { }
-
- ngOnInit() {}
-
- listAppliancesModal() {
- const dialogRef = this.dialog.open(ApplianceListDialogComponent, {
- width: '600px',
- height: '560px',
- data: {
- 'server': this.server
- }
- });
-
- dialogRef.afterClosed().subscribe((appliance: Appliance) => {
- if (appliance !== null) {
- this.onNodeCreation.emit(appliance);
- }
- });
- }
-}
diff --git a/src/app/components/project-map/project-map.component.css b/src/app/components/project-map/project-map.component.css
index 29992d74..54f447a4 100644
--- a/src/app/components/project-map/project-map.component.css
+++ b/src/app/components/project-map/project-map.component.css
@@ -31,10 +31,18 @@ g.node:hover {
outline: none;
}
-.mat-drawer-content {
- display: inline !important;
+@-moz-document url-prefix() {
+ /** fixes gray background of drawing menu on Firefox **/
+ .mat-drawer-content {
+ display: inline !important;
+ }
}
+.mat-drawer-content {
+ height: auto !important;
+}
+
+
.drawer-container {
height: 72px !important;
background: transparent;
@@ -92,10 +100,6 @@ g.node:hover {
background-color: transparent;
}
-.selected {
- stroke: #0097a7!important;
-}
-
.project-toolbar .mat-toolbar-multiple-rows {
width: auto !important;
}
diff --git a/src/app/components/project-map/project-map.component.html b/src/app/components/project-map/project-map.component.html
index 5f866def..e51586ba 100644
--- a/src/app/components/project-map/project-map.component.html
+++ b/src/app/components/project-map/project-map.component.html
@@ -91,16 +91,16 @@
-
+ >
-