Skip to content

Commit

Permalink
Display a name, not integer, for the user to choose a Docker instance
Browse files Browse the repository at this point in the history
  • Loading branch information
gartens committed Apr 15, 2024
1 parent 70d1ba8 commit c258eda
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
6 changes: 2 additions & 4 deletions src/app/models/catalog.model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -140,11 +140,11 @@ export enum DeployMode {
}

export interface AdapterSettingModel {
subOf: string;
type: string;
subOf: string;
name: string;
nameAlias: string;
alias: any;
alias: Map<string, string>;
description: string;
defaultValue: string;
canBeNull: boolean;
Expand Down Expand Up @@ -202,5 +202,3 @@ export class NamespaceRequest {
this.dataModels = dataModels;
}
}


8 changes: 5 additions & 3 deletions src/app/views/adapters/adapters.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,7 @@ <h4 cModalTitle>{{ activeMode() ? "Settings" : "Deployment Mode" }}</h4>
</select>
</c-input-group>
<!--dynamic select, which use ids internally-->
<!-- Unused
<ng-template #editDynamic>
<c-input-group class="select-wrapper">
<span cInputGroupText cTooltipPlacement="left"
Expand All @@ -173,7 +174,7 @@ <h4 cModalTitle>{{ activeMode() ? "Settings" : "Deployment Mode" }}</h4>
</option>
</select>
</c-input-group>
</ng-template>
</ng-template> -->
</div>
<c-input-group
*ngIf="getAdapterSetting(control.key).template.type.toLowerCase() === 'directory'">
Expand Down Expand Up @@ -244,11 +245,12 @@ <h4 cModalTitle>{{ activeMode() ? "Settings" : "Deployment Mode" }}</h4>
[formControlName]="control.key"
(change)="onChange(control.key,control.value)">
<option *ngFor="let option of getAdapterSetting(control.key).template.options"
[value]="option">{{ option }}
[value]="option">{{ getAdapterSetting(control.key).template.alias[option] }}
</option>
</select>
<c-form-feedback>{{ getGenericFeedback(control.key) }}</c-form-feedback>
</c-input-group>
<!-- Unused
<ng-template #dynamicSelect>
<c-input-group class="has-validation">
<label cInputGroupText
Expand All @@ -266,7 +268,7 @@ <h4 cModalTitle>{{ activeMode() ? "Settings" : "Deployment Mode" }}</h4>
</select>
<c-form-feedback>{{ getGenericFeedback(control.key) }}</c-form-feedback>
</c-input-group>
</ng-template>
</ng-template> -->
</ng-container>
<c-input-group
*ngIf="getAdapterSetting(control.key).template.type.toLowerCase() === 'directory'">
Expand Down

0 comments on commit c258eda

Please sign in to comment.