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">
<div>
<ng-container *ngIf="isUploadEnabled()">
@if (isUploadEnabled()) {
<adf-upload-button
[staticTitle]="'FORM.FIELD.UPLOAD' | translate"
[multipleFiles]="isMultipleSelection()"
[rootFolderId]="currentDirectoryId"
[disabled]="isNotAllowedToUpload()"
(error)="onError($event)" />
</ng-container>
}
</div>
<div>
<button