mirror of
https://github.com/GNS3/gns3-web-ui.git
synced 2025-04-09 11:31:15 +00:00
Missing features in docker configurator
This commit is contained in:
parent
93532d3274
commit
c7db04ce3b
src/app/components/project-map/node-editors/configurator/docker
30
src/app/components/project-map/node-editors/configurator/docker/configurator-docker.component.html
30
src/app/components/project-map/node-editors/configurator/docker/configurator-docker.component.html
@ -10,9 +10,17 @@
|
||||
<mat-form-field class="form-field">
|
||||
<input matInput formControlName="name" type="text" [(ngModel)]="node.name" placeholder="Name">
|
||||
</mat-form-field>
|
||||
|
||||
<mat-form-field class="form-field">
|
||||
<input matInput formControlName="startCommand" type="text" [(ngModel)]="node.properties.start_command" placeholder="Start command">
|
||||
</mat-form-field>
|
||||
|
||||
<mat-form-field class="form-field">
|
||||
<input formControlName="adapter" matInput type="number" [(ngModel)]="node.properties.adapters" placeholder="Adapters">
|
||||
</mat-form-field>
|
||||
|
||||
<!-- custom adapters -->
|
||||
|
||||
<mat-form-field class="select">
|
||||
<mat-select [ngModelOptions]="{standalone: true}" placeholder="Console type" [(ngModel)]="node.console_type">
|
||||
<mat-option *ngFor="let type of consoleTypes" [value]="type">
|
||||
@ -23,6 +31,23 @@
|
||||
<mat-checkbox [ngModelOptions]="{standalone: true}" [(ngModel)]="node.console_auto_start">
|
||||
Auto start console
|
||||
</mat-checkbox>
|
||||
|
||||
<mat-form-field class="form-field">
|
||||
<mat-select [ngModelOptions]="{standalone: true}" placeholder="VNC console resolution" [(ngModel)]="node.properties.console_resolution">
|
||||
<mat-option *ngFor="let resolution of consoleResolutions" [value]="resolution">
|
||||
{{resolution}}
|
||||
</mat-option>
|
||||
</mat-select>
|
||||
</mat-form-field>
|
||||
|
||||
<mat-form-field class="form-field">
|
||||
<input formControlName="consoleHttpPort" matInput type="number" [(ngModel)]="node.properties.console_http_port" placeholder="HTTP port in the container">
|
||||
</mat-form-field>
|
||||
|
||||
<mat-form-field class="form-field">
|
||||
<input matInput formControlName="consoleHttpPath" type="text" [(ngModel)]="node.properties.console_http_path" placeholder="HTTP path">
|
||||
</mat-form-field>
|
||||
|
||||
</form>
|
||||
<h6>Environment</h6>
|
||||
<mat-form-field class="form-field">
|
||||
@ -34,6 +59,11 @@
|
||||
<h6>Extra hosts</h6>
|
||||
<mat-form-field class="form-field">
|
||||
<textarea matInput type="text" [(ngModel)]="node.properties.extra_hosts"></textarea>
|
||||
</mat-form-field><br/>
|
||||
|
||||
<h6>Additional directories</h6>
|
||||
<mat-form-field class="form-field">
|
||||
<textarea matInput type="text" [(ngModel)]="node.properties.extra_volumes"></textarea>
|
||||
</mat-form-field>
|
||||
</mat-tab>
|
||||
|
||||
|
@ -19,6 +19,15 @@ export class ConfiguratorDialogDockerComponent implements OnInit {
|
||||
name: string;
|
||||
generalSettingsForm: FormGroup;
|
||||
consoleTypes: string[] = [];
|
||||
consoleResolutions: string[] = [
|
||||
'640x480',
|
||||
'800x600',
|
||||
'1024x768',
|
||||
'1280x800',
|
||||
'1280x1024',
|
||||
'1366x768',
|
||||
'1920x1080'
|
||||
];
|
||||
|
||||
constructor(
|
||||
public dialogRef: MatDialogRef<ConfiguratorDialogDockerComponent>,
|
||||
@ -29,7 +38,10 @@ export class ConfiguratorDialogDockerComponent implements OnInit {
|
||||
) {
|
||||
this.generalSettingsForm = this.formBuilder.group({
|
||||
name: new FormControl('', Validators.required),
|
||||
adapter: new FormControl('', Validators.required)
|
||||
adapter: new FormControl('', Validators.required),
|
||||
startCommand: new FormControl('', Validators.required),
|
||||
consoleHttpPort: new FormControl('', Validators.required),
|
||||
consoleHttpPath: new FormControl('', Validators.required)
|
||||
});
|
||||
}
|
||||
|
||||
@ -43,7 +55,6 @@ export class ConfiguratorDialogDockerComponent implements OnInit {
|
||||
|
||||
getConfiguration() {
|
||||
this.consoleTypes = this.dockerConfigurationService.getConsoleTypes();
|
||||
|
||||
}
|
||||
|
||||
onSaveClick() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user