Sha256: 72b6f5b064cff287429084accdd901eae30fb34dd62cf4b360be8ac88fcf9753

Contents?: true

Size: 685 Bytes

Versions: 3

Compression:

Stored size: 685 Bytes

Contents

class Lanes.Components.ErrorDisplay extends Lanes.React.Component

    propTypes:
        model:  Lanes.PropTypes.State.isRequired

    bindEvents: ->
        model: "change:error"

    clearErrors: ->
        @model.errors = null

    render: ->
        return null unless @model.errors
        <div className="alert alert-warning alert-dismissible" role="alert">
            <button onClick={@clearErrors} type="button" className="close"
                data-dismiss="alert" aria-label="Close">
                <span aria-hidden="true">&times;</span>
            </button>
            <i className="icon icon-exclamation-circle" />
            { @model.errorMessage }
        </div>

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
lanes-0.7.0 client/lanes/components/shared/ErrorDisplay.cjsx
lanes-0.6.1 client/lanes/components/shared/ErrorDisplay.cjsx
lanes-0.6.0 client/lanes/components/shared/ErrorDisplay.cjsx