Commit b27942c0 authored by Rémy Coutable's avatar Rémy Coutable

Resolve conflicts

Signed-off-by: default avatarRémy Coutable <remy@rymai.me>
parent adbfff09
...@@ -89,7 +89,6 @@ export default Vue.component('environment-component', { ...@@ -89,7 +89,6 @@ export default Vue.component('environment-component', {
}, },
methods: { methods: {
<<<<<<< HEAD
/** /**
* Toggles the visibility of the deploy boards of the clicked environment. * Toggles the visibility of the deploy boards of the clicked environment.
...@@ -101,8 +100,6 @@ export default Vue.component('environment-component', { ...@@ -101,8 +100,6 @@ export default Vue.component('environment-component', {
return this.store.toggleDeployBoard(model.id); return this.store.toggleDeployBoard(model.id);
}, },
=======
>>>>>>> ce/master
toggleFolder(folder, folderUrl) { toggleFolder(folder, folderUrl) {
this.store.toggleFolder(folder); this.store.toggleFolder(folder);
...@@ -226,11 +223,8 @@ export default Vue.component('environment-component', { ...@@ -226,11 +223,8 @@ export default Vue.component('environment-component', {
:environments="state.environments" :environments="state.environments"
:can-create-deployment="canCreateDeploymentParsed" :can-create-deployment="canCreateDeploymentParsed"
:can-read-environment="canReadEnvironmentParsed" :can-read-environment="canReadEnvironmentParsed"
<<<<<<< HEAD
:toggleDeployBoard="toggleDeployBoard" :toggleDeployBoard="toggleDeployBoard"
:store="store" :store="store"
=======
>>>>>>> ce/master
:service="service" :service="service"
:is-loading-folder-content="isLoadingFolderContent" /> :is-loading-folder-content="isLoadingFolderContent" />
</div> </div>
......
...@@ -465,12 +465,8 @@ export default { ...@@ -465,12 +465,8 @@ export default {
:href="environmentPath"> :href="environmentPath">
{{model.name}} {{model.name}}
</a> </a>
<<<<<<< HEAD
<span v-if="model.isFolder" <span v-if="model.isFolder"
=======
<span v-else
>>>>>>> ce/master
class="folder-name" class="folder-name"
@click="onClickFolder" @click="onClickFolder"
role="button"> role="button">
......
...@@ -98,7 +98,6 @@ export default { ...@@ -98,7 +98,6 @@ export default {
:toggleDeployBoard="toggleDeployBoard" :toggleDeployBoard="toggleDeployBoard"
:service="service"></tr> :service="service"></tr>
<<<<<<< HEAD
<tr v-if="model.hasDeployBoard && model.isDeployBoardVisible" class="js-deploy-board-row"> <tr v-if="model.hasDeployBoard && model.isDeployBoardVisible" class="js-deploy-board-row">
<td colspan="6" class="deploy-board-container"> <td colspan="6" class="deploy-board-container">
<deploy-board <deploy-board
...@@ -111,8 +110,6 @@ export default { ...@@ -111,8 +110,6 @@ export default {
</td> </td>
</tr> </tr>
=======
>>>>>>> ce/master
<template v-if="model.isFolder && model.isOpen && model.children && model.children.length > 0"> <template v-if="model.isFolder && model.isOpen && model.children && model.children.length > 0">
<tr v-if="isLoadingFolderContent"> <tr v-if="isLoadingFolderContent">
<td colspan="6" class="text-center"> <td colspan="6" class="text-center">
......
...@@ -121,7 +121,6 @@ export default class EnvironmentsStore { ...@@ -121,7 +121,6 @@ export default class EnvironmentsStore {
} }
/** /**
<<<<<<< HEAD
* Toggles deploy board visibility for the provided environment ID. * Toggles deploy board visibility for the provided environment ID.
* *
* @param {Object} environment * @param {Object} environment
...@@ -164,8 +163,6 @@ export default class EnvironmentsStore { ...@@ -164,8 +163,6 @@ export default class EnvironmentsStore {
} }
/* /*
=======
>>>>>>> ce/master
* Toggles folder open property for the given folder. * Toggles folder open property for the given folder.
* *
* @param {Object} folder * @param {Object} folder
...@@ -226,8 +223,4 @@ export default class EnvironmentsStore { ...@@ -226,8 +223,4 @@ export default class EnvironmentsStore {
return updatedEnvironments; return updatedEnvironments;
} }
<<<<<<< HEAD
=======
>>>>>>> ce/master
} }
...@@ -187,7 +187,6 @@ import './visibility_select'; ...@@ -187,7 +187,6 @@ import './visibility_select';
import './wikis'; import './wikis';
import './zen_mode'; import './zen_mode';
<<<<<<< HEAD
// EE-only scripts // EE-only scripts
require('./admin_email_select'); require('./admin_email_select');
require('./application_settings'); require('./application_settings');
...@@ -196,8 +195,6 @@ require('./ldap_groups_select'); ...@@ -196,8 +195,6 @@ require('./ldap_groups_select');
require('./path_locks'); require('./path_locks');
require('./weight_select'); require('./weight_select');
=======
>>>>>>> ce/master
// eslint-disable-next-line global-require // eslint-disable-next-line global-require
if (process.env.NODE_ENV !== 'production') require('./test_utils/'); if (process.env.NODE_ENV !== 'production') require('./test_utils/');
......
...@@ -101,13 +101,8 @@ ...@@ -101,13 +101,8 @@
@media (min-width: $screen-sm-min) { @media (min-width: $screen-sm-min) {
height: 475px; // Needed for PhantomJS height: 475px; // Needed for PhantomJS
<<<<<<< HEAD
height: calc(100vh - 220px);
min-height: 409px;
=======
height: calc(100vh - 222px); height: calc(100vh - 222px);
min-height: 475px; min-height: 475px;
>>>>>>> ce/master
transition: width .2s; transition: width .2s;
&.is-compact { &.is-compact {
......
...@@ -279,14 +279,9 @@ describe('Environment', () => { ...@@ -279,14 +279,9 @@ describe('Environment', () => {
setTimeout(() => { setTimeout(() => {
expect(component.$el.querySelectorAll('.js-child-row').length).toEqual(1); expect(component.$el.querySelectorAll('.js-child-row').length).toEqual(1);
expect(component.$el.querySelector('td.text-center > a.btn').textContent).toContain('Show all'); expect(component.$el.querySelector('td.text-center > a.btn').textContent).toContain('Show all');
<<<<<<< HEAD
done();
Vue.http.interceptors = _.without(Vue.http.interceptors, folderInterceptor);
=======
Vue.http.interceptors = _.without(Vue.http.interceptors, folderInterceptor); Vue.http.interceptors = _.without(Vue.http.interceptors, folderInterceptor);
done(); done();
>>>>>>> ce/master
}); });
}); });
}); });
......
...@@ -14,7 +14,6 @@ describe('Store', () => { ...@@ -14,7 +14,6 @@ describe('Store', () => {
expect(store.state.availableCounter).toEqual(0); expect(store.state.availableCounter).toEqual(0);
expect(store.state.paginationInformation).toEqual({}); expect(store.state.paginationInformation).toEqual({});
}); });
<<<<<<< HEAD
it('should store environments', () => { it('should store environments', () => {
const expectedResult = { const expectedResult = {
...@@ -39,13 +38,6 @@ describe('Store', () => { ...@@ -39,13 +38,6 @@ describe('Store', () => {
store.storeEnvironments(serverData); store.storeEnvironments(serverData);
expect(store.state.environments.length).toEqual(serverData.length); expect(store.state.environments.length).toEqual(serverData.length);
expect(store.state.environments[0]).toEqual(expectedResult); expect(store.state.environments[0]).toEqual(expectedResult);
=======
it('should store environments', () => {
store.storeEnvironments(serverData);
expect(store.state.environments.length).toEqual(serverData.length);
expect(store.state.environments[0]).toEqual(environmentsList[0]);
>>>>>>> ce/master
}); });
it('should store available count', () => { it('should store available count', () => {
...@@ -64,7 +56,6 @@ describe('Store', () => { ...@@ -64,7 +56,6 @@ describe('Store', () => {
expect(store.state.environments.length).toEqual(serverData.length); expect(store.state.environments.length).toEqual(serverData.length);
}); });
<<<<<<< HEAD
it('should store a non folder environment with deploy board if rollout_status_path key is provided', () => { it('should store a non folder environment with deploy board if rollout_status_path key is provided', () => {
const environment = { const environment = {
name: 'foo', name: 'foo',
...@@ -79,8 +70,6 @@ describe('Store', () => { ...@@ -79,8 +70,6 @@ describe('Store', () => {
expect(store.state.environments[0].deployBoardData).toEqual({}); expect(store.state.environments[0].deployBoardData).toEqual({});
}); });
=======
>>>>>>> ce/master
it('should add folder keys when environment is a folder', () => { it('should add folder keys when environment is a folder', () => {
const environment = { const environment = {
name: 'bar', name: 'bar',
...@@ -111,11 +100,7 @@ describe('Store', () => { ...@@ -111,11 +100,7 @@ describe('Store', () => {
it('should store latest.name when the environment is not a folder', () => { it('should store latest.name when the environment is not a folder', () => {
store.storeEnvironments(serverData); store.storeEnvironments(serverData);
<<<<<<< HEAD
expect(store.state.environments[2].name).toEqual(serverData[2].latest.name); expect(store.state.environments[2].name).toEqual(serverData[2].latest.name);
=======
expect(store.state.environments[0].name).toEqual(serverData[0].latest.name);
>>>>>>> ce/master
}); });
it('should store root level name when environment is a folder', () => { it('should store root level name when environment is a folder', () => {
...@@ -171,7 +156,6 @@ describe('Store', () => { ...@@ -171,7 +156,6 @@ describe('Store', () => {
expect(store.state.paginationInformation).toEqual(expectedResult); expect(store.state.paginationInformation).toEqual(expectedResult);
}); });
}); });
<<<<<<< HEAD
describe('deploy boards', () => { describe('deploy boards', () => {
beforeEach(() => { beforeEach(() => {
...@@ -194,6 +178,4 @@ describe('Store', () => { ...@@ -194,6 +178,4 @@ describe('Store', () => {
expect(store.state.environments[0].deployBoardData).toEqual(deployBoardMockData); expect(store.state.environments[0].deployBoardData).toEqual(deployBoardMockData);
}); });
}); });
=======
>>>>>>> ce/master
}); });
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