Commit 36705b10 authored by Nick Thomas's avatar Nick Thomas

CE->EE: fix upstream merge conflicts

parent 5cbdbdf3
......@@ -34,17 +34,7 @@ export default {
watch: {
editMode() {
<<<<<<< HEAD
if (this.editMode) {
$('.project-refs-form').addClass('disabled');
$('.js-tree-ref-target-holder').show();
} else {
$('.project-refs-form').removeClass('disabled');
$('.js-tree-ref-target-holder').hide();
}
=======
this.toggleProjectRefsForm();
>>>>>>> upstream/master
},
},
};
......
......@@ -35,11 +35,7 @@ export default {
fileClicked(clickedFile) {
let file = clickedFile;
<<<<<<< HEAD
=======
if (file.loading) return;
>>>>>>> upstream/master
file.loading = true;
if (file.type === 'tree' && file.opened) {
file = Store.removeChildFilesOfTree(file);
......
......@@ -39,19 +39,11 @@ export default RepoTab;
</script>
<template>
<<<<<<< HEAD
<li>
<a
href="#0"
class="close"
@click.prevent="xClicked(tab)"
=======
<li @click="tabClicked(tab)">
<a
href="#0"
class="close"
@click.stop.prevent="closeTab(tab)"
>>>>>>> upstream/master
:aria-label="closeLabel">
<i
class="fa"
......
......@@ -13,11 +13,7 @@ const RepoTabs = {
data: () => Store,
methods: {
<<<<<<< HEAD
xClicked(file) {
=======
tabClosed(file) {
>>>>>>> upstream/master
Store.removeFromOpenedFiles(file);
},
},
......@@ -27,12 +23,6 @@ export default RepoTabs;
</script>
<template>
<<<<<<< HEAD
<ul
v-if="isMini"
id="tabs">
<repo-tab v-for="tab in openedFiles" :key="tab.id" :tab="tab" :class="{'active' : tab.active}" @xclicked="xClicked"/>
=======
<ul id="tabs">
<repo-tab
v-for="tab in openedFiles"
......@@ -41,7 +31,6 @@ export default RepoTabs;
:class="{'active' : tab.active}"
@tabclosed="tabClosed"
/>
>>>>>>> upstream/master
<li class="tabs-divider" />
</ul>
</template>
......@@ -37,13 +37,6 @@ const RepoHelper = {
getFileExtension(fileName) {
return fileName.split('.').pop();
<<<<<<< HEAD
},
getBranch() {
return $('button.dropdown-menu-toggle').attr('data-ref');
=======
>>>>>>> upstream/master
},
getLanguageIDForFile(file, langs) {
......@@ -142,10 +135,6 @@ const RepoHelper = {
return Service.getContent()
.then((response) => {
const data = response.data;
<<<<<<< HEAD
// RepoHelper.setLoading(false, loadingData);
=======
>>>>>>> upstream/master
Store.isTree = RepoHelper.isTree(data);
if (!Store.isTree) {
if (!file) file = data;
......
......@@ -6,11 +6,8 @@ const RepoStore = {
monaco: {},
monacoLoading: false,
service: '',
<<<<<<< HEAD
=======
canCommit: false,
onTopOfBranch: false,
>>>>>>> upstream/master
editMode: false,
isTree: false,
isRoot: false,
......
......@@ -29,17 +29,6 @@ describe('RepoTabs', () => {
expect(tabs[2].classList.contains('tabs-divider')).toBeTruthy();
});
<<<<<<< HEAD
it('does not render a tabs list if not isMini', () => {
RepoStore.openedFiles = [];
const vm = createComponent();
expect(vm.$el.innerHTML).toBeFalsy();
});
=======
>>>>>>> upstream/master
describe('methods', () => {
describe('tabClosed', () => {
it('calls removeFromOpenedFiles with file obj', () => {
......
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