Commit 3af533f7 authored by Regis's avatar Regis

rename candescription to canUpdateIssue

parent 57731bbc
......@@ -4,13 +4,13 @@ import '../vue_shared/vue_resource_interceptor';
(() => {
const issueTitleData = document.querySelector('.issue-title-data').dataset;
const { candescription, endpoint } = issueTitleData;
const { canupdateissue, endpoint } = issueTitleData;
const vm = new Vue({
el: '.issue-title-entrypoint',
render: createElement => createElement(IssueTitle, {
props: {
candescription,
canUpdateIssue: canupdateissue,
endpoint,
},
}),
......
......@@ -10,7 +10,7 @@ export default {
required: true,
type: String,
},
candescription: {
canUpdateIssue: {
required: true,
type: String,
},
......@@ -131,7 +131,7 @@ export default {
},
computed: {
descriptionClass() {
return `description ${this.candescription} is-task-list-enabled`;
return `description ${this.canUpdateIssue} is-task-list-enabled`;
},
},
created() {
......
......@@ -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),
"canDescription" => can?(current_user, :update_issue, @issue) ? 'js-task-list-container' : '',
"canUpdateIssue" => can?(current_user, :update_issue, @issue) ? 'js-task-list-container' : '',
} }
.issue-title-entrypoint
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment