Skip to content

Commit

Permalink
Remove dynamic adapter settings
Browse files Browse the repository at this point in the history
  • Loading branch information
gartens committed Apr 15, 2024
1 parent c258eda commit e5ea206
Showing 1 changed file with 2 additions and 36 deletions.
38 changes: 2 additions & 36 deletions src/app/views/adapters/adapters.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -149,8 +149,7 @@ <h4 cModalTitle>{{ activeMode() ? "Settings" : "Deployment Mode" }}</h4>
<c-form-feedback>required</c-form-feedback>
</c-input-group>
<div class="form-group" *ngIf="getAdapterSetting(control.key).template.options">
<c-input-group class="select-wrapper"
*ngIf="!getAdapterSetting(control.key).template.dynamic; else editDynamic">
<c-input-group class="select-wrapper">
<span cInputGroupText cTooltipPlacement="left"
[cTooltip]="getAdapterSetting(control.key).template.description">
{{ control.key }}
Expand All @@ -162,19 +161,6 @@ <h4 cModalTitle>{{ activeMode() ? "Settings" : "Deployment Mode" }}</h4>
</option>
</select>
</c-input-group>
<!--dynamic select, which use ids internally-->
<!-- Unused
<ng-template #editDynamic>
<c-input-group class="select-wrapper">
<span cInputGroupText cTooltipPlacement="left"
[cTooltip]="getAdapterSetting(control.key).template.description"></span>
<select cSelect [id]="control.key" [formControlName]="control.key">
<option *ngFor="let option of getAdapterSetting(control.key).template.options"
[value]="option">{{ getAdapterSetting(control.key).template.alias[option] }}
</option>
</select>
</c-input-group>
</ng-template> -->
</div>
<c-input-group
*ngIf="getAdapterSetting(control.key).template.type.toLowerCase() === 'directory'">
Expand Down Expand Up @@ -231,8 +217,7 @@ <h4 cModalTitle>{{ activeMode() ? "Settings" : "Deployment Mode" }}</h4>
<c-form-feedback>{{ getGenericFeedback(control.key) }}</c-form-feedback>
</c-input-group>
<ng-container *ngIf="getAdapterSetting(control.key).template.options">
<c-input-group class="has-validation"
*ngIf="!getAdapterSetting(control.key).template.dynamic; else dynamicSelect">
<c-input-group class="has-validation">
<span cInputGroupText
[cTooltip]="getAdapterSetting(control.key).template.description"
[cTooltipVisible]="!!getAdapterSetting(control.key).template.description"
Expand All @@ -250,25 +235,6 @@ <h4 cModalTitle>{{ activeMode() ? "Settings" : "Deployment Mode" }}</h4>
</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
[cTooltip]="getAdapterSetting(control.key).template.description"
[cTooltipVisible]="!!getAdapterSetting(control.key).template.description"
cTooltipPlacement="left"
[for]="control.key">{{ getAdapterSetting(control.key).template.nameAlias }}</label>
<select cSelect [id]="control.key"
[ngClass]="validate(control.value, control.key)"
[formControlName]="control.key">
<option *ngFor="let option of getAdapterSetting(control.key).template.options"
[value]="option">{{ getAdapterSetting(control.key).template.alias[option] }}
</option>
</select>
<c-form-feedback>{{ getGenericFeedback(control.key) }}</c-form-feedback>
</c-input-group>
</ng-template> -->
</ng-container>
<c-input-group
*ngIf="getAdapterSetting(control.key).template.type.toLowerCase() === 'directory'">
Expand Down

0 comments on commit e5ea206

Please sign in to comment.