Skip to content

Commit

Permalink
Merge pull request #1478 from GNS3/release-v2.2.44
Browse files Browse the repository at this point in the history
Release v2.2.44
  • Loading branch information
grossmj authored Nov 6, 2023
2 parents f3b8a42 + c96d66b commit ca40866
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "gns3-web-ui",
"version": "2.2.42",
"version": "2.2.44",
"author": {
"name": "GNS3 Technology Inc.",
"email": "developers@gns3.com"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,29 @@ <h1 mat-dialog-title>Style editor</h1>
/>
</mat-form-field>

<mat-form-field class="form-field" *ngIf="element.width !== undefined">
<input
matInput
[ngModelOptions]="{ standalone: true }"
placeholder="Width"
min="0"
type="number"
[(ngModel)]="element.width"
/>
</mat-form-field>

<mat-form-field class="form-field" *ngIf="element.height !== undefined">
<input
matInput
[ngModelOptions]="{ standalone: true }"
placeholder="Height"
min="0"
type="number"
[(ngModel)]="element.height"
/>
</mat-form-field>


<mat-form-field class="form-field" *ngIf="element.rx !== undefined">
<input
matInput
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,8 @@ export class StyleEditorDialogComponent implements OnInit {

if (this.drawing.element instanceof RectElement || this.drawing.element instanceof EllipseElement) {
this.element.fill = this.drawing.element.fill;
this.element.width = this.drawing.element.width;
this.element.height = this.drawing.element.height;
this.element.stroke = this.drawing.element.stroke;
this.element.stroke_dasharray = this.drawing.element.stroke_dasharray;
this.element.stroke_width = this.drawing.element.stroke_width;
Expand Down Expand Up @@ -79,6 +81,8 @@ export class StyleEditorDialogComponent implements OnInit {

if (this.drawing.element instanceof RectElement || this.drawing.element instanceof EllipseElement) {
this.drawing.element.fill = this.element.fill;
this.drawing.element.width = this.element.width;
this.drawing.element.height = this.element.height;
this.drawing.element.stroke = this.element.stroke;
this.drawing.element.stroke_dasharray = this.element.stroke_dasharray;
this.drawing.element.stroke_width = this.element.stroke_width;
Expand Down Expand Up @@ -110,6 +114,8 @@ export class StyleEditorDialogComponent implements OnInit {

export class ElementData {
fill: string;
width: number;
height: number;
stroke: string;
stroke_width: number;
stroke_dasharray: string;
Expand Down
2 changes: 1 addition & 1 deletion src/app/services/packet-capture.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export class PacketCaptureService {

startCapture(server: Server, project: Project, link: Link, name: string) {
location.assign(
`gns3+pcap://${server.host}:${server.port}?project_id=${project.project_id}&link_id=${link.link_id}&name=${name}`
`gns3+pcap://${server.host}:${server.port}?protocol=${server.protocol.slice(0, -1)}&project_id=${project.project_id}&link_id=${link.link_id}&project=${project.name}&name=${name}`
);
}
}

0 comments on commit ca40866

Please sign in to comment.