Hide generator type radio options when the generator is opened from an add/edit page (#6240)

This commit is contained in:
Shane Melton 2023-09-21 08:37:52 -07:00 committed by GitHub
parent 02af0fed4c
commit 217e081859
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 4 deletions

View File

@ -75,7 +75,7 @@
</button> </button>
</div> </div>
</div> </div>
<div class="box"> <div class="box" *ngIf="!comingFromAddEdit">
<div class="box-content"> <div class="box-content">
<div class="box-content-row" role="radiogroup" aria-labelledby="typeHeading"> <div class="box-content-row" role="radiogroup" aria-labelledby="typeHeading">
<label id="typeHeading" class="radio-header">{{ <label id="typeHeading" class="radio-header">{{
@ -90,7 +90,6 @@
[value]="o.value" [value]="o.value"
(change)="typeChanged()" (change)="typeChanged()"
[checked]="type === o.value" [checked]="type === o.value"
[disabled]="comingFromAddEdit && type !== o.value"
/> />
<label for="type_{{ o.value }}"> <label for="type_{{ o.value }}">
{{ o.name }} {{ o.name }}

View File

@ -70,7 +70,7 @@
</button> </button>
</div> </div>
</div> </div>
<div class="box"> <div class="box" *ngIf="!comingFromAddEdit">
<div class="box-content condensed"> <div class="box-content condensed">
<div <div
class="box-content-row box-content-row-radio" class="box-content-row box-content-row-radio"
@ -95,7 +95,6 @@
[value]="o.value" [value]="o.value"
(change)="typeChanged()" (change)="typeChanged()"
[checked]="type === o.value" [checked]="type === o.value"
[disabled]="comingFromAddEdit && type !== o.value"
/> />
<label class="unstyled" for="type_{{ o.value }}"> <label class="unstyled" for="type_{{ o.value }}">
{{ o.name }} {{ o.name }}