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">
|
<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
|
||||||
|
|||||||
Reference in New Issue
Block a user