Skip to content

Commit

Permalink
adds filetype filter to ember-filepicker instance #49
Browse files Browse the repository at this point in the history
  • Loading branch information
jamemackson committed Jul 16, 2015
1 parent 6088c07 commit ae09d7b
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions client/app/pods/admin/artist/images/new/template.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,22 @@
<p>{{controller.model.url}}</p>
{{/if}}
</div>
<div class="ui basic segment two fields">
<div class="ui basic segment six fields">
{{#unless controller.model.url}}
<div class="two wide field">
{{!-- {{image-upload-button action='queueImage'}} --}}
{{#if showFilePicker}}
{{ember-filepicker pickerOptions=pickerOptions multiple=true onSelection='fileSelected' onClose='onClose' onError='onError'}}
{{ember-filepicker
pickerOptions=pickerOptions
multiple=true
onSelection='fileSelected'
onClose='onClose'
onError='onError'
accept=".jpg,.jpeg,.gif,.png"
readAs="readAsDataURL"
}}
{{/if}}
<button {{action 'showPicker'}}>Choose Images</button>
<button class="ui small button" {{action 'showPicker'}}>Choose Images</button>
</div>
{{/unless}}
<div class="four wide field">
Expand Down

0 comments on commit ae09d7b

Please sign in to comment.