Commit 3af533f7 authored by Regis's avatar Regis

rename candescription to canUpdateIssue

parent 57731bbc
...@@ -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 { candescription, endpoint } = issueTitleData; const { canupdateissue, 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: {
candescription, canUpdateIssue: canupdateissue,
endpoint, endpoint,
}, },
}), }),
......
...@@ -10,7 +10,7 @@ export default { ...@@ -10,7 +10,7 @@ export default {
required: true, required: true,
type: String, type: String,
}, },
candescription: { canUpdateIssue: {
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.candescription} is-task-list-enabled`; return `description ${this.canUpdateIssue} is-task-list-enabled`;
}, },
}, },
created() { created() {
......
...@@ -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),
"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 .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