Commit 4cef3251 authored by Mike Greiling's avatar Mike Greiling

Remove jQuery from project path_locks:destroy action

parent 6406bacc
- unless @project.path_locks.any?
$('.locks').load(document.URL + ' .nothing-here-block').hide().fadeIn(1000)
var emptyState = document.querySelector('.locks .nothing-here-block.hidden');
if (emptyState) emptyState.classList.remove('hidden');
......@@ -10,6 +10,6 @@
= render @path_locks
= paginate @path_locks, theme: 'gitlab'
- else
.nothing-here-block
= _("Repository has no locks.")
.nothing-here-block{ class: ('hidden' if @path_locks.any?) }
= _("Repository has no locks.")
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