BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
gitlab-ce
Commits
3af533f7
Commit
3af533f7
authored
May 04, 2017
by
Regis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rename candescription to canUpdateIssue
parent
57731bbc
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
5 deletions
+5
-5
index.js
app/assets/javascripts/issue_show/index.js
+2
-2
issue_title_description.vue
...assets/javascripts/issue_show/issue_title_description.vue
+2
-2
show.html.haml
app/views/projects/issues/show.html.haml
+1
-1
No files found.
app/assets/javascripts/issue_show/index.js
View file @
3af533f7
...
...
@@ -4,13 +4,13 @@ import '../vue_shared/vue_resource_interceptor';
(()
=>
{
const
issueTitleData
=
document
.
querySelector
(
'.issue-title-data'
).
dataset
;
const
{
can
description
,
endpoint
}
=
issueTitleData
;
const
{
can
updateissue
,
endpoint
}
=
issueTitleData
;
const
vm
=
new
Vue
({
el
:
'.issue-title-entrypoint'
,
render
:
createElement
=>
createElement
(
IssueTitle
,
{
props
:
{
can
description
,
can
UpdateIssue
:
canupdateissue
,
endpoint
,
},
}),
...
...
app/assets/javascripts/issue_show/issue_title_description.vue
View file @
3af533f7
...
...
@@ -10,7 +10,7 @@ export default {
required
:
true
,
type
:
String
,
},
can
description
:
{
can
UpdateIssue
:
{
required
:
true
,
type
:
String
,
},
...
...
@@ -131,7 +131,7 @@ export default {
},
computed
:
{
descriptionClass
()
{
return
`description
${
this
.
can
description
}
is-task-list-enabled`
;
return
`description
${
this
.
can
UpdateIssue
}
is-task-list-enabled`
;
},
},
created
()
{
...
...
app/views/projects/issues/show.html.haml
View file @
3af533f7
...
...
@@ -52,7 +52,7 @@
.issue-details.issuable-details
.detail-page-description.content-block
.issue-title-data.hidden
{
"data"
=>
{
"endpoint"
=>
rendered_title_namespace_project_issue_path
(
@project
.
namespace
,
@project
,
@issue
),
"can
Description
"
=>
can?
(
current_user
,
:update_issue
,
@issue
)
?
'js-task-list-container'
:
''
,
"can
UpdateIssue
"
=>
can?
(
current_user
,
:update_issue
,
@issue
)
?
'js-task-list-container'
:
''
,
}
}
.issue-title-entrypoint
...
...
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