Commit 5a055539 authored by Dennis Tang's avatar Dennis Tang

refactor duplicate method calls

parent bce501f0
......@@ -33,11 +33,11 @@ export default class Project {
const $label = $container.find('.js-clone-dropdown-label');
$el.toggleClass('is-active');
$projectCloneField.val(url);
$label.text(activeText);
$('.git-empty .clone').text(url);
});
$projectCloneField.val(url);
$('.git-empty .clone').text(url);
});
// Ref switcher
Project.initRefSwitcher();
......
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