             graphStore: @props.graphStore
             selectionManager: @props.selectionManager
             showMinigraph: @state.showingMinigraphs
-            # showGraphButton: @props.graphStore.codapStandaloneMode and not @state.diagramOnly
-            # for now, show graph button whenever we are in simulation mode
-            showGraphButton: not @state.diagramOnly
+            showGraphButton: @state.codapHasLoaded and not @state.diagramOnly
           })
       )
     )

RelationFactory  = require "../models/relation-factory"

SimulationStore  = require "../stores/simulation-store"
AppSettingsStore  = require "../stores/app-settings-store"
LinkColors       = require "../utils/link-colors"

{div} = React.DOM

module.exports = React.createClass

  displayName: 'LinkView'
  mixins: [ GraphStore.mixin, SimulationStore.mixin, AppSettingsStore.mixin, CodapStore.mixin ]

  getDefaultProps: ->
    linkTarget: '.link-top'
