[ADF-1458] revert changes applied for upload button (#2286)

* [ADF-1458] reverting changes from ADF-1458

* [ADF-1458] reapply default value to disabled

* [ADF-1458] revert changes on README

* [ADF-1458] update readme added more check for node permission checking

* [ADF-1458] reverting changes to tests

* [ADF-1458] revert changes for test directive
This commit is contained in:
Vito
2017-09-04 08:37:37 -07:00
committed by Mario Romano
parent 62e50e8fbf
commit 4e50c4e2d6
6 changed files with 23 additions and 23 deletions

View File

@@ -268,10 +268,10 @@
</md-input-container>
</section>
<div *ngIf="!acceptedFilesTypeShow">
<adf-upload-button
<alfresco-upload-button
#uploadButton
tooltip="Custom tooltip"
[disable]="!enableUpload"
[disabled]="!enableUpload"
data-automation-id="multiple-file-upload"
[rootFolderId]="documentList.currentFolderId"
[multipleFiles]="multipleFileUpload"
@@ -280,13 +280,13 @@
[adf-node-permission]="'create'"
[adf-nodes]="getCurrentDocumentListNode()"
(permissionEvent)="handlePermissionError($event)">
</adf-upload-button>
</alfresco-upload-button>
</div>
<div *ngIf="acceptedFilesTypeShow">
<alfresco-upload-button
#uploadButton
tooltip="Custom tooltip"
[disable]="!enableUpload"
[disabled]="!enableUpload"
data-automation-id="multiple-file-upload"
[rootFolderId]="documentList.currentFolderId"
[acceptedFilesType]="acceptedFilesType"
@@ -299,7 +299,7 @@
</alfresco-upload-button>
</div>
<section>
<md-checkbox [(ngModel)]="enableUpload">Enable upload (demoing enabled/disabled state)</md-checkbox>
<md-checkbox [(ngModel)]="enableUpload">Enable upload (demoing enabled/disabled state only if the permission are not checked dynamically)</md-checkbox>
</section>
</div>