       logopath: '/a/images/logos/sidebar_footer_logo.svg'
       canEdit: canEdit
       loading: no
+      teamNameChanged: no
 
 
   componentDidMount: ->

      ref='view'
      team={@state.team}
      teamName={@state.teamName}
      canEdit={@state.canEdit}
      loading={@state.loading}
      logopath={@state.logopath}


    TeamFlux.actions.updateTeam(dataToUpdate).then ({ message }) =>
      notify message
      @setState
        loading: no
        teamNameChanged: no
    .catch ({ message }) =>
      notify message
      @setState
        loading: no
        teamNameChanged: no


  onTeamNameChanged: (event) ->

    @setState { teamName : event.target.value }

    if @state.team.get('title') isnt event.target.value
      @setState { teamNameChanged: yes }
    else
      @setState { teamNameChanged: no }

  onLeaveTeam: (event) ->

