     switch path
       when '/kcsapi/api_port/port'
         updateflag = true
+        label = @updateLabels()
       when '/kcsapi/api_req_hensei/change'
         updateflag = true
+        label = @updateLabels()
       when '/kcsapi/api_req_nyukyo/start'
         shipId = parseInt postBody.api_ship_id
         if shipId in @props.deck.api_ship
           i = @props.deck.api_ship.indexOf shipId
-          # status = getStatusArray shipId
-          label[i][1] = true
+          # status = getShipStatus shipId
+          label[i] = 1
           updateflag = true
     if updateflag
-      label = @updateLabels()
       @setState
         label: label
   shouldComponentUpdate: (nextProps, nextState) ->


getStatusStyle = (status) ->
  if status?
    flag = status[0] or status[1] # retreat or repairing
    if flag? and flag
      return {opacity: 0.4}
  else
    return {}

getStatusArray = (shipId) ->
  status = []
  # retreat status
  status[0] = shipId == escapeId || shipId == towId
  # reparing
  status[1] = if shipId in _ndocks then true else false
  # special 1 locked phase 1
  status[2] = _ships[shipId].api_sally_area == 1
  # special 2 locked phase 2
  status[3] = _ships[shipId].api_sally_area == 2
  # special 3 locked phase 3
  status[4] =  _ships[shipId].api_sally_area == 3
  # special 3 locked phase 3
  status[5] = _ships[shipId].api_sally_area == 4
  return status

###

  condDynamicUpdateFlag: false
  getInitialState: ->
    cond: [0, 0, 0, 0, 0, 0]
    label: [-1, -1, -1, -1, -1, -1]
  updateLabels: ->
    # refresh label
    {label} = @state
    for shipId, j in @props.deck.api_ship
      continue if shipId == -1
      ship = _ships[shipId]
      status = getShipStatus shipId
      label[j] = status
    label
  onCondChange: (cond) ->
