Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Jérome Perrin
gitlab-ce
Commits
a5f17beb
Commit
a5f17beb
authored
Mar 23, 2017
by
Filipa Lacerda
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use Ci instead of CI.
Use kebab case instead of camelCase in templates props
parent
cfe2e6b7
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
12 deletions
+12
-12
app/assets/javascripts/vue_pipelines_index/components/nav_controls.js
...avascripts/vue_pipelines_index/components/nav_controls.js
+2
-2
app/assets/javascripts/vue_pipelines_index/pipelines.js
app/assets/javascripts/vue_pipelines_index/pipelines.js
+5
-5
spec/javascripts/vue_pipelines_index/nav_controls_spec.js
spec/javascripts/vue_pipelines_index/nav_controls_spec.js
+5
-5
No files found.
app/assets/javascripts/vue_pipelines_index/components/nav_controls.js
View file @
a5f17beb
...
@@ -5,7 +5,7 @@ export default {
...
@@ -5,7 +5,7 @@ export default {
required
:
true
,
required
:
true
,
},
},
hasC
I
Enabled
:
{
hasC
i
Enabled
:
{
type
:
Boolean
,
type
:
Boolean
,
required
:
true
,
required
:
true
,
},
},
...
@@ -36,7 +36,7 @@ export default {
...
@@ -36,7 +36,7 @@ export default {
</a>
</a>
<a
<a
v-if="!hasC
I
Enabled"
v-if="!hasC
i
Enabled"
:href="helpPagePath"
:href="helpPagePath"
class="btn btn-info">
class="btn btn-info">
Get started with Pipelines
Get started with Pipelines
...
...
app/assets/javascripts/vue_pipelines_index/pipelines.js
View file @
a5f17beb
...
@@ -106,7 +106,7 @@ export default {
...
@@ -106,7 +106,7 @@ export default {
this
.
state
.
pageInfo
.
total
>
this
.
state
.
pageInfo
.
perPage
;
this
.
state
.
pageInfo
.
total
>
this
.
state
.
pageInfo
.
perPage
;
},
},
hasC
I
Enabled
()
{
hasC
i
Enabled
()
{
return
this
.
hasCi
!==
undefined
;
return
this
.
hasCi
!==
undefined
;
},
},
...
@@ -190,11 +190,11 @@ export default {
...
@@ -190,11 +190,11 @@ export default {
:paths="paths" />
:paths="paths" />
<navigation-controls
<navigation-controls
:new
PipelineP
ath="newPipelinePath"
:new
-pipeline-p
ath="newPipelinePath"
:has
CIEnabled="hasCI
Enabled"
:has
-ci-enabled="hasCi
Enabled"
:help
PageP
ath="helpPagePath"
:help
-page-p
ath="helpPagePath"
:ciLintPath="ciLintPath"
:ciLintPath="ciLintPath"
:can
CreateP
ipeline="canCreatePipelineParsed " />
:can
-create-p
ipeline="canCreatePipelineParsed " />
</div>
</div>
<div class="content-list pipelines">
<div class="content-list pipelines">
...
...
spec/javascripts/vue_pipelines_index/nav_controls_spec.js
View file @
a5f17beb
...
@@ -11,7 +11,7 @@ describe('Pipelines Nav Controls', () => {
...
@@ -11,7 +11,7 @@ describe('Pipelines Nav Controls', () => {
it
(
'
should render link to create a new pipeline
'
,
()
=>
{
it
(
'
should render link to create a new pipeline
'
,
()
=>
{
const
mockData
=
{
const
mockData
=
{
newPipelinePath
:
'
foo
'
,
newPipelinePath
:
'
foo
'
,
hasC
I
Enabled
:
true
,
hasC
i
Enabled
:
true
,
helpPagePath
:
'
foo
'
,
helpPagePath
:
'
foo
'
,
ciLintPath
:
'
foo
'
,
ciLintPath
:
'
foo
'
,
canCreatePipeline
:
true
,
canCreatePipeline
:
true
,
...
@@ -28,7 +28,7 @@ describe('Pipelines Nav Controls', () => {
...
@@ -28,7 +28,7 @@ describe('Pipelines Nav Controls', () => {
it
(
'
should not render link to create pipeline if no permission is provided
'
,
()
=>
{
it
(
'
should not render link to create pipeline if no permission is provided
'
,
()
=>
{
const
mockData
=
{
const
mockData
=
{
newPipelinePath
:
'
foo
'
,
newPipelinePath
:
'
foo
'
,
hasC
I
Enabled
:
true
,
hasC
i
Enabled
:
true
,
helpPagePath
:
'
foo
'
,
helpPagePath
:
'
foo
'
,
ciLintPath
:
'
foo
'
,
ciLintPath
:
'
foo
'
,
canCreatePipeline
:
false
,
canCreatePipeline
:
false
,
...
@@ -44,7 +44,7 @@ describe('Pipelines Nav Controls', () => {
...
@@ -44,7 +44,7 @@ describe('Pipelines Nav Controls', () => {
it
(
'
should render link for CI lint
'
,
()
=>
{
it
(
'
should render link for CI lint
'
,
()
=>
{
const
mockData
=
{
const
mockData
=
{
newPipelinePath
:
'
foo
'
,
newPipelinePath
:
'
foo
'
,
hasC
I
Enabled
:
true
,
hasC
i
Enabled
:
true
,
helpPagePath
:
'
foo
'
,
helpPagePath
:
'
foo
'
,
ciLintPath
:
'
foo
'
,
ciLintPath
:
'
foo
'
,
canCreatePipeline
:
true
,
canCreatePipeline
:
true
,
...
@@ -61,7 +61,7 @@ describe('Pipelines Nav Controls', () => {
...
@@ -61,7 +61,7 @@ describe('Pipelines Nav Controls', () => {
it
(
'
should render link to help page when CI is not enabled
'
,
()
=>
{
it
(
'
should render link to help page when CI is not enabled
'
,
()
=>
{
const
mockData
=
{
const
mockData
=
{
newPipelinePath
:
'
foo
'
,
newPipelinePath
:
'
foo
'
,
hasC
I
Enabled
:
false
,
hasC
i
Enabled
:
false
,
helpPagePath
:
'
foo
'
,
helpPagePath
:
'
foo
'
,
ciLintPath
:
'
foo
'
,
ciLintPath
:
'
foo
'
,
canCreatePipeline
:
true
,
canCreatePipeline
:
true
,
...
@@ -78,7 +78,7 @@ describe('Pipelines Nav Controls', () => {
...
@@ -78,7 +78,7 @@ describe('Pipelines Nav Controls', () => {
it
(
'
should not render link to help page when CI is enabled
'
,
()
=>
{
it
(
'
should not render link to help page when CI is enabled
'
,
()
=>
{
const
mockData
=
{
const
mockData
=
{
newPipelinePath
:
'
foo
'
,
newPipelinePath
:
'
foo
'
,
hasC
I
Enabled
:
true
,
hasC
i
Enabled
:
true
,
helpPagePath
:
'
foo
'
,
helpPagePath
:
'
foo
'
,
ciLintPath
:
'
foo
'
,
ciLintPath
:
'
foo
'
,
canCreatePipeline
:
true
,
canCreatePipeline
:
true
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment