Skip to content
Snippets Groups Projects
Commit a5f17beb authored by Filipa Lacerda's avatar Filipa Lacerda
Browse files

Use Ci instead of CI.

Use kebab case instead of camelCase in templates props
parent cfe2e6b7
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -5,7 +5,7 @@ export default {
required: true,
},
 
hasCIEnabled: {
hasCiEnabled: {
type: Boolean,
required: true,
},
Loading
Loading
@@ -36,7 +36,7 @@ export default {
</a>
 
<a
v-if="!hasCIEnabled"
v-if="!hasCiEnabled"
:href="helpPagePath"
class="btn btn-info">
Get started with Pipelines
Loading
Loading
Loading
Loading
@@ -106,7 +106,7 @@ export default {
this.state.pageInfo.total > this.state.pageInfo.perPage;
},
 
hasCIEnabled() {
hasCiEnabled() {
return this.hasCi !== undefined;
},
 
Loading
Loading
@@ -190,11 +190,11 @@ export default {
:paths="paths" />
 
<navigation-controls
:newPipelinePath="newPipelinePath"
:hasCIEnabled="hasCIEnabled"
:helpPagePath="helpPagePath"
:new-pipeline-path="newPipelinePath"
:has-ci-enabled="hasCiEnabled"
:help-page-path="helpPagePath"
:ciLintPath="ciLintPath"
:canCreatePipeline="canCreatePipelineParsed " />
:can-create-pipeline="canCreatePipelineParsed " />
</div>
 
<div class="content-list pipelines">
Loading
Loading
Loading
Loading
@@ -11,7 +11,7 @@ describe('Pipelines Nav Controls', () => {
it('should render link to create a new pipeline', () => {
const mockData = {
newPipelinePath: 'foo',
hasCIEnabled: true,
hasCiEnabled: true,
helpPagePath: 'foo',
ciLintPath: 'foo',
canCreatePipeline: true,
Loading
Loading
@@ -28,7 +28,7 @@ describe('Pipelines Nav Controls', () => {
it('should not render link to create pipeline if no permission is provided', () => {
const mockData = {
newPipelinePath: 'foo',
hasCIEnabled: true,
hasCiEnabled: true,
helpPagePath: 'foo',
ciLintPath: 'foo',
canCreatePipeline: false,
Loading
Loading
@@ -44,7 +44,7 @@ describe('Pipelines Nav Controls', () => {
it('should render link for CI lint', () => {
const mockData = {
newPipelinePath: 'foo',
hasCIEnabled: true,
hasCiEnabled: true,
helpPagePath: 'foo',
ciLintPath: 'foo',
canCreatePipeline: true,
Loading
Loading
@@ -61,7 +61,7 @@ describe('Pipelines Nav Controls', () => {
it('should render link to help page when CI is not enabled', () => {
const mockData = {
newPipelinePath: 'foo',
hasCIEnabled: false,
hasCiEnabled: false,
helpPagePath: 'foo',
ciLintPath: 'foo',
canCreatePipeline: true,
Loading
Loading
@@ -78,7 +78,7 @@ describe('Pipelines Nav Controls', () => {
it('should not render link to help page when CI is enabled', () => {
const mockData = {
newPipelinePath: 'foo',
hasCIEnabled: true,
hasCiEnabled: true,
helpPagePath: 'foo',
ciLintPath: 'foo',
canCreatePipeline: true,
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment