Sha256: d82b166f6459e39229d77ae1b97051647b937a4c5e59694071b789e8374977d8

Contents?: true

Size: 485 Bytes

Versions: 4

Compression:

Stored size: 485 Bytes

Contents

class Skr.Components.InvoiceLink extends Lanes.React.Component
    propTypes:
        onClick: React.PropTypes.func
        invoice: React.PropTypes.instanceOf(Skr.Models.Invoice)

    onClick: ->
        @props.onClick?()
        @props.invoice.withAssociations(['lines']).then =>
            Lanes.Screens.Definitions.all.get('invoice')
                .display(props: {invoice: @props.invoice})

    render: ->
        <a href='#' onClick={@onClick}>{@props.invoice.visible_id}</a>

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
stockor-0.5.0 client/skr/components/InvoiceLink.cjsx
stockor-0.4.0 client/skr/components/InvoiceLink.cjsx
stockor-0.3.0 client/skr/components/InvoiceLink.cjsx
stockor-0.2 client/skr/components/InvoiceLink.cjsx