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
1
Merge Requests
1
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
nexedi
gitlab-ce
Commits
6fcd3426
Commit
6fcd3426
authored
Jul 10, 2018
by
samdbeckham
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Moves the shouldRenderFooterSection of the issues modal from computed to methods to bust the cache
parent
7abbde6e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
11 deletions
+12
-11
ee/app/assets/javascripts/vue_shared/security_reports/components/modal.vue
...ascripts/vue_shared/security_reports/components/modal.vue
+12
-11
No files found.
ee/app/assets/javascripts/vue_shared/security_reports/components/modal.vue
View file @
6fcd3426
...
...
@@ -32,15 +32,7 @@
this
.
modal
.
vulnerability
.
dismissalFeedback
.
author
);
},
/**
* The slot for the footer should be rendered if any of the conditions is true.
*/
shouldRenderFooterSection
()
{
return
(
!
this
.
modal
.
isResolved
&&
(
this
.
canCreateFeedbackPermission
||
this
.
canCreateIssuePermission
)
);
},
},
methods
:
{
...
mapActions
([
'
dismissIssue
'
,
'
revertDismissIssue
'
,
'
createNewIssue
'
]),
...
...
@@ -66,6 +58,15 @@
hasLinks
(
field
,
key
)
{
return
key
===
'
links
'
&&
this
.
hasValue
(
field
);
},
/**
* The slot for the footer should be rendered if any of the conditions is true.
*/
shouldRenderFooterSection
()
{
return
(
!
this
.
modal
.
isResolved
&&
(
this
.
canCreateFeedbackPermission
||
this
.
canCreateIssuePermission
)
);
},
},
};
</
script
>
...
...
@@ -73,7 +74,7 @@
<modal
id=
"modal-mrwidget-security-issue"
:header-title-text=
"modal.title"
:class=
"
{ 'modal-hide-footer': !shouldRenderFooterSection }"
:class=
"
{ 'modal-hide-footer': !shouldRenderFooterSection
()
}"
class="modal-security-report-dast"
>
<slot>
...
...
@@ -212,7 +213,7 @@
</div>
</slot>
<div
slot=
"footer"
>
<
template
v-if=
"shouldRenderFooterSection"
>
<
template
v-if=
"shouldRenderFooterSection
()
"
>
<button
type=
"button"
class=
"btn btn-default"
...
...
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