Sha256: 92444db6ec62a4251994776f9a877f5eebdcebfbcf0e8c56024f4c22cfb22701

Contents?: true

Size: 1.03 KB

Versions: 3

Compression:

Stored size: 1.03 KB

Contents

##= require_self
##= require ./Import
##= require ./ApiInfo
##= require ./ChooseRecords
##= require ./ViewRecords

class Skr.Screens.FreshBooksImport extends Skr.Screens.Base
    modelForAccess: 'invoice'
    getInitialState: -> isEditing: true
    dataObjects:
        import: ->
            new Skr.Screens.FreshBooksImport.Import

    JobStatus: ->
        return null unless @import.job.isExecuting
        message = if @import.stage is 'complete'
            "Importing records from Fresh Books"
        else
            "Loading record summaries from Fresh Books"
        <LC.JobStatus job={@import.job} onlyExecuting
            message={message} />

    render: ->
        <LC.ScreenWrapper identifier="fresh-books-import">
            <LC.ErrorDisplay model={@import} />

            <Skr.Screens.FreshBooksImport.ApiInfo import={@import} />
            <@JobStatus />
            <Skr.Screens.FreshBooksImport.ChooseRecords import={@import} />
            <Skr.Screens.FreshBooksImport.ViewRecords import={@import} />
        </LC.ScreenWrapper>

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
stockor-0.4.0 client/skr/screens/fresh-books-import/FreshBooksImport.cjsx
stockor-0.3.0 client/skr/screens/fresh-books-import/FreshBooksImport.cjsx
stockor-0.2 client/skr/screens/fresh-books-import/FreshBooksImport.cjsx