Use Ci instead of CI.
Use kebab case instead of camelCase in templates props
This commit is contained in:
parent
cfe2e6b7a3
commit
a5f17beb43
|
@ -5,7 +5,7 @@ export default {
|
|||
required: true,
|
||||
},
|
||||
|
||||
hasCIEnabled: {
|
||||
hasCiEnabled: {
|
||||
type: Boolean,
|
||||
required: true,
|
||||
},
|
||||
|
@ -36,7 +36,7 @@ export default {
|
|||
</a>
|
||||
|
||||
<a
|
||||
v-if="!hasCIEnabled"
|
||||
v-if="!hasCiEnabled"
|
||||
:href="helpPagePath"
|
||||
class="btn btn-info">
|
||||
Get started with Pipelines
|
||||
|
|
|
@ -106,7 +106,7 @@ export default {
|
|||
this.state.pageInfo.total > this.state.pageInfo.perPage;
|
||||
},
|
||||
|
||||
hasCIEnabled() {
|
||||
hasCiEnabled() {
|
||||
return this.hasCi !== undefined;
|
||||
},
|
||||
|
||||
|
@ -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">
|
||||
|
|
|
@ -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,
|
||||
|
@ -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,
|
||||
|
@ -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,
|
||||
|
@ -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,
|
||||
|
@ -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…
Reference in New Issue