Skip to content

Commit

Permalink
Revert directory parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
georgipeltekov committed Aug 8, 2019
1 parent e2c1566 commit 7621ae1
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 22 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
## Change Log
### [8.0.6](https://github.com/georgipeltekov/ngx-file-drop/compare/v8.0.6...v8.0.7) (2019-08-08)
* Revert previous version due to regression

### [8.0.6](https://github.com/georgipeltekov/ngx-file-drop/compare/v8.0.5...v8.0.6) (2019-08-06)
* Add readme to the npm package

Expand Down
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,6 @@ Name | Description | Example |
(onFileOver) | On drop over function| (onFileOver)="fileOver($event)"
(onFileLeave) | On drop leave function| (onFileLeave)="fileLeave($event)"
accept | String of accepted formats | accept="png"
directory | Whether directories are accepted | directory="true"
dropZoneLabel | Text to be displayed inside the drop box | dropZoneLabel="Drop files here"
dropZoneClassName | Custom style class name(s) to be used on the "drop-zone" area | dropZoneClassName="my-style"
contentClassName | Custom style class name(s) to be used for the content area | contentClassName="my-style"
Expand Down
17 changes: 0 additions & 17 deletions src/ngx-file-drop/ngx-file-drop.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,31 +4,14 @@
(dragover)="onDragOver($event)"
(dragleave)="onDragLeave($event)">
<div [className]="contentClassName">
<span *ngIf="directory">
<input
type="file"
#fileSelector
[accept]="accept"
directory
webkitdirectory
mozdirectory
msdirectory
odirectory
[multiple]="multiple"
(change)="uploadFiles($event)"
class="ngx-file-drop__file-input"
/>
</span>
<span *ngIf="!directory">
<input
type="file"
#fileSelector
[accept]="accept"
[multiple]="multiple"
(change)="uploadFiles($event)"
class="ngx-file-drop__file-input"
/>
</span>

<ng-template #defaultContentTemplate>
<div *ngIf="dropZoneLabel" class="ngx-file-drop__drop-zone-label">{{dropZoneLabel}}</div>
Expand Down
3 changes: 0 additions & 3 deletions src/ngx-file-drop/ngx-file-drop.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,6 @@ export class NgxFileDropComponent implements OnDestroy {
@Input()
public accept: string = '*';

@Input()
public directory: boolean = false;

@Input()
public multiple: boolean = true;

Expand Down
2 changes: 1 addition & 1 deletion src/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"$schema": "../node_modules/ng-packagr/package.schema.json",
"name": "ngx-file-drop",
"version": "8.0.6",
"version": "8.0.7",
"description": "Angular ngx-file-drop - Simple desktop file and folder drag and drop",
"author": "Georgi Peltekov",
"license": "MIT",
Expand Down

0 comments on commit 7621ae1

Please sign in to comment.