mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2026-09-09 18:03:21 +00:00
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:
+2
-2
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user