Skip to content

Commit 2600f2d

Browse files
committed
Fix comments
1 parent f644144 commit 2600f2d

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

projects/admin-core/src/lib/catalog/feature-type-attachment-attributes/feature-type-attachment-attributes.component.html

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,6 @@
2121
<mat-cell *matCellDef="let element; let i = index">
2222
<mat-form-field [formGroupName]="i">
2323
<input matInput formControlName="attributeName" i18n-placeholder="@@admin-core.catalog.attribute-name-placeholder" placeholder="Enter attribute name">
24-
<mat-error *ngIf="attributes.at(i).get('attributeName')?.hasError('required')">
25-
26-
</mat-error>
2724
@if (attributes.at(i).get('attributeName')?.hasError('required')) {
2825
<mat-error i18n="@@admin-core.catalog.attribute-name-required-error">Attribute name is required</mat-error>
2926
}
@@ -61,8 +58,7 @@
6158
<ng-container matColumnDef="actions">
6259
<mat-header-cell *matHeaderCellDef></mat-header-cell>
6360
<mat-cell *matCellDef="let element; let i = index">
64-
<button mat-icon-button color="warn" type="button" (click)="removeAttribute(i)"
65-
[disabled]="attributes.length === 1">
61+
<button mat-icon-button color="warn" type="button" (click)="removeAttribute(i)">
6662
<mat-icon svgIcon="trash_filled"></mat-icon>
6763
</button>
6864
</mat-cell>

0 commit comments

Comments
 (0)