Commit e9bbea70 authored by Robert Speicher's avatar Robert Speicher

Don't hide the clone holder for an empty project

parent be25f261
class @Project
constructor: ->
# Git clone panel switcher
cloneHolder = $ '.git-clone-holder'
if cloneHolder.length > 0
cloneHolder = $('.git-clone-holder')
if cloneHolder.length
$('a, button', cloneHolder).click ->
$('a, button', cloneHolder).removeClass 'active'
$(@).addClass 'active'
......@@ -28,4 +28,4 @@ class @Project
$('.js-toggle-clone-holder').on 'click', (e) ->
cloneHolder.toggle()
cloneHolder.hide()
cloneHolder.hide() unless $('.empty-project').length
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment