refactor: update conditional rendering syntax in content node selector component

- Replaced ng-container with a more concise @if syntax for the upload button's visibility.
- Improved template readability and maintainability.
This commit is contained in:
Denys Vuika
2026-02-27 13:05:51 +00:00
parent 4fc599522c
commit 2acc4702cd
@@ -74,14 +74,14 @@
<mat-dialog-actions class="adf-content-node-selector-dialog-actions"> <mat-dialog-actions class="adf-content-node-selector-dialog-actions">
<div> <div>
<ng-container *ngIf="isUploadEnabled()"> @if (isUploadEnabled()) {
<adf-upload-button <adf-upload-button
[staticTitle]="'FORM.FIELD.UPLOAD' | translate" [staticTitle]="'FORM.FIELD.UPLOAD' | translate"
[multipleFiles]="isMultipleSelection()" [multipleFiles]="isMultipleSelection()"
[rootFolderId]="currentDirectoryId" [rootFolderId]="currentDirectoryId"
[disabled]="isNotAllowedToUpload()" [disabled]="isNotAllowedToUpload()"
(error)="onError($event)" /> (error)="onError($event)" />
</ng-container> }
</div> </div>
<div> <div>
<button <button