Unverified Commit e77d6dd8 authored by Nestor Diaz's avatar Nestor Diaz Committed by GitHub

Split file upload buttons (#381)

parent bd111294
Pipeline #82452 passed with stages
in 8 minutes and 20 seconds
......@@ -17,23 +17,22 @@
<st-ftp-upload-button></st-ftp-upload-button>
</div>
<div class="btn-group pull-right" style="margin-right:1em;background-color:#b5d7ec;border-radius: 3px;" role="group">
<st-file-upload-button
class="pull-right"
[multiple]="true"
[isDirOnly]="isBulkMode"
<st-file-upload-button [multiple]="true"
[isDirOnly]="false"
(select)="onUploadFilesSelect($event)"
tooltip="{{isBulkMode ? 'Select a folder' : 'Select files'}}"
title="File upload"
tooltip="Select files"
placement="bottom"
#fileEl>
</st-file-upload-button>
<st-file-upload-button [multiple]="false"
[isDirOnly]="true"
title="Folder upload"
(select)="onUploadFilesSelect($event)"
tooltip="Select a folder"
placement="bottom"
#fileEl>
</st-file-upload-button>
<span *ngIf="fileEl.hasDirSupport" class="mode-toggle checkbox pull-right" style="padding-left:6pt">
<label>
<input type="checkbox"
name="folder-mode"
[(ngModel)]="isBulkMode">
<span>Bulk folder</span>
</label>
</span>
</div>
</div>
</nav>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment