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
Boxiang Sun
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
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
5 deletions
+5
-5
app/assets/javascripts/issue_show/index.js
app/assets/javascripts/issue_show/index.js
+2
-2
app/assets/javascripts/issue_show/issue_title_description.vue
...assets/javascripts/issue_show/issue_title_description.vue
+2
-2
app/views/projects/issues/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';
...
@@ -4,13 +4,13 @@ import '../vue_shared/vue_resource_interceptor';
(()
=>
{
(()
=>
{
const
issueTitleData
=
document
.
querySelector
(
'
.issue-title-data
'
).
dataset
;
const
issueTitleData
=
document
.
querySelector
(
'
.issue-title-data
'
).
dataset
;
const
{
can
description
,
endpoint
}
=
issueTitleData
;
const
{
can
updateissue
,
endpoint
}
=
issueTitleData
;
const
vm
=
new
Vue
({
const
vm
=
new
Vue
({
el
:
'
.issue-title-entrypoint
'
,
el
:
'
.issue-title-entrypoint
'
,
render
:
createElement
=>
createElement
(
IssueTitle
,
{
render
:
createElement
=>
createElement
(
IssueTitle
,
{
props
:
{
props
:
{
can
description
,
can
UpdateIssue
:
canupdateissue
,
endpoint
,
endpoint
,
},
},
}),
}),
...
...
app/assets/javascripts/issue_show/issue_title_description.vue
View file @
3af533f7
...
@@ -10,7 +10,7 @@ export default {
...
@@ -10,7 +10,7 @@ export default {
required
:
true
,
required
:
true
,
type
:
String
,
type
:
String
,
},
},
can
description
:
{
can
UpdateIssue
:
{
required
:
true
,
required
:
true
,
type
:
String
,
type
:
String
,
},
},
...
@@ -131,7 +131,7 @@ export default {
...
@@ -131,7 +131,7 @@ export default {
},
},
computed
:
{
computed
:
{
descriptionClass
()
{
descriptionClass
()
{
return
`description
${
this
.
can
description
}
is-task-list-enabled`
;
return
`description
${
this
.
can
UpdateIssue
}
is-task-list-enabled`
;
},
},
},
},
created
()
{
created
()
{
...
...
app/views/projects/issues/show.html.haml
View file @
3af533f7
...
@@ -52,7 +52,7 @@
...
@@ -52,7 +52,7 @@
.issue-details.issuable-details
.issue-details.issuable-details
.detail-page-description.content-block
.detail-page-description.content-block
.issue-title-data.hidden
{
"data"
=>
{
"endpoint"
=>
rendered_title_namespace_project_issue_path
(
@project
.
namespace
,
@project
,
@issue
),
.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
.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