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

Further review changes

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