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

CE->EE: fix upstream merge conflicts

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