Commit 59a6f15c authored by Luke "Jared" Bennett's avatar Luke "Jared" Bennett

Further review changes

parent 00ee7a9f
...@@ -266,9 +266,9 @@ ...@@ -266,9 +266,9 @@
<div class="error-alert"></div> <div class="error-alert"></div>
<issue-warning <issue-warning
v-if="hasIssueWarning(getIssueData)" v-if="hasWarning(getIssueData)"
:is-locked="isIssueLocked(getIssueData)" :is-locked="isLocked(getIssueData)"
:is-confidential="isIssueConfidential(getIssueData)" :is-confidential="isConfidential(getIssueData)"
/> />
<markdown-field <markdown-field
...@@ -276,7 +276,6 @@ ...@@ -276,7 +276,6 @@
:markdown-docs-path="markdownDocsPath" :markdown-docs-path="markdownDocsPath"
:quick-actions-docs-path="quickActionsDocsPath" :quick-actions-docs-path="quickActionsDocsPath"
:add-spacing-classes="false" :add-spacing-classes="false"
:is-confidential-issue="isIssueConfidential(getIssueData)"
ref="markdownField"> ref="markdownField">
<textarea <textarea
id="note-body" id="note-body"
......
...@@ -129,9 +129,9 @@ ...@@ -129,9 +129,9 @@
class="edit-note common-note-form js-quick-submit gfm-form"> class="edit-note common-note-form js-quick-submit gfm-form">
<issue-warning <issue-warning
v-if="hasIssueWarning(getIssueData)" v-if="hasWarning(getIssueData)"
:is-locked="isIssueLocked(getIssueData)" :is-locked="isLocked(getIssueData)"
:is-confidential="isIssueConfidential(getIssueData)" :is-confidential="isConfidential(getIssueData)"
/> />
<markdown-field <markdown-field
......
export default { export default {
methods: { methods: {
isIssueConfidential(issue) { isConfidential(issue) {
return !!issue.confidential; return !!issue.confidential;
}, },
isIssueLocked(issue) { isLocked(issue) {
return !!issue.discussion_locked; return !!issue.discussion_locked;
}, },
hasIssueWarning(issue) { hasWarning(issue) {
return this.isIssueConfidential(issue) || this.isIssueLocked(issue); return this.isConfidential(issue) || this.isLocked(issue);
}, },
}, },
}; };
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