Commit be39e038 authored by Filipa Lacerda's avatar Filipa Lacerda

Fix conflict for app/assets/javascripts/project.js

parent d2595ea3
......@@ -13,7 +13,6 @@ export default class Project {
if (selectedCloneOption.length > 0) {
$(`a:contains('${selectedCloneOption}')`, $cloneOptions).addClass('is-active');
}
<<<<<<< HEAD
$('a', $cloneOptions).on('click', (e) => {
const $this = $(e.currentTarget);
......@@ -31,20 +30,6 @@ export default class Project {
cloneUrlPrimary: $this.data('primaryUrl') || '',
});
=======
$('a', $cloneOptions).on('click', (e) => {
const $this = $(e.currentTarget);
const url = $this.attr('href');
e.preventDefault();
$('.is-active', $cloneOptions).not($this).removeClass('is-active');
$this.toggleClass('is-active');
$projectCloneField.val(url);
$cloneBtnText.text($this.text());
>>>>>>> upstream/master
return $('.clone').text(url);
});
// Ref switcher
......@@ -62,7 +47,6 @@ export default class Project {
$(this).parents('.no-password-message').remove();
return e.preventDefault();
});
<<<<<<< HEAD
$('.hide-shared-runner-limit-message').on('click', function(e) {
var $alert = $(this).parents('.shared-runner-quota-message');
var scope = $alert.data('scope');
......@@ -74,12 +58,6 @@ export default class Project {
}
static projectSelectDropdown() {
=======
Project.projectSelectDropdown();
}
static projectSelectDropdown () {
>>>>>>> upstream/master
new ProjectSelect();
$('.project-item-select').on('click', e => Project.changeProject($(e.currentTarget).val()));
}
......
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