Skip to content
Snippets Groups Projects
Commit e9bbea70 authored by Robert Speicher's avatar Robert Speicher
Browse files

Don't hide the clone holder for an empty project

parent be25f261
No related branches found
No related tags found
No related merge requests found
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'
Loading
Loading
@@ -28,4 +28,4 @@ class @Project
$('.js-toggle-clone-holder').on 'click', (e) ->
cloneHolder.toggle()
 
cloneHolder.hide()
cloneHolder.hide() unless $('.empty-project').length
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment