Code coverage report for code/views/google-file-view.coffee

Statements: 0% (0 / 13)      Branches: 0% (0 / 2)      Functions: 0% (0 / 3)      Lines: 0% (0 / 10)      Ignored: none     

All files » code/views/ » google-file-view.coffee
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27                                                     
 
{div, label, input, button} = React.DOM
 
module.exports = React.createClass
  mixins: [require '../mixins/google-file-interface']
 
  displayName: 'GoogleFileView'
 
  getInitialState: ->
    @getInitialAppViewState {}
 
  componentDidMount: ->
    @createGoogleDrive()
 
 
  render: ->
    (div {className: 'file-dialog-view'},
      (div {className: 'filename'}, if @state.action then @state.action else @props.filename),
      (div {className: 'buttons'},
        (button {onClick: @newFile}, 'New'),
        (button {onClick: @openFile, disabled: not @state.gapiLoaded}, 'Open'),
        (button {onClick: @saveFile, disabled: not @state.gapiLoaded}, 'Save')
      )
    )