Commit 6406bacc authored by Mike Greiling's avatar Mike Greiling

Remove jQuery from admin labels:destroy action

parent 2827e75f
- if @labels.size == 0 - if @labels.size == 0
$('.labels').load(document.URL + ' .nothing-here-block').hide().fadeIn(1000) var emptyState = document.querySelector('.labels .nothing-here-block.hidden');
if (emptyState) emptyState.classList.remove('hidden');
...@@ -13,5 +13,6 @@ ...@@ -13,5 +13,6 @@
= render @labels = render @labels
= paginate @labels, theme: 'gitlab' = paginate @labels, theme: 'gitlab'
- else
.nothing-here-block= _('There are no labels yet') .nothing-here-block{ class: ('hidden' if @labels.present?) }
= _('There are no labels yet')
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