Skip to content

Commit

Permalink
remove notr while connecting
Browse files Browse the repository at this point in the history
The message is instead displayed in screen below logo
 as is updated if connection fails during loading of contacts
  • Loading branch information
averissimo committed Oct 17, 2016
1 parent 1e2a4ae commit d5c9f4a
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/ui/views/controller.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,12 @@ handle 'update:connection', do ->
document.querySelector('.state_contacts').classList.remove("hide")
el = null
else
el = notr {html:conninfo.el.innerHTML, stay:0, id:'conn'}
document.querySelector('.state_connecting').innerHTML = connection.infoText().replace('','')
if document.querySelector('.connecting.hide')?
el = notr {html:conninfo.el.innerHTML, stay:0, id:'conn'}
else
document.querySelector('.state_connecting').classList.remove("hide")
document.querySelector('.state_contacts').classList.add("hide")


setLeftSize = (left) ->
Expand Down

0 comments on commit d5c9f4a

Please sign in to comment.