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
7687d52f
Commit
7687d52f
authored
Aug 25, 2020
by
Kev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add suggestion for refresh methods
parent
d4789eae
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
8 deletions
+7
-8
ee/app/assets/javascripts/vulnerabilities/components/vulnerability.vue
.../javascripts/vulnerabilities/components/vulnerability.vue
+7
-8
No files found.
ee/app/assets/javascripts/vulnerabilities/components/vulnerability.vue
View file @
7687d52f
...
@@ -72,12 +72,11 @@ export default {
...
@@ -72,12 +72,11 @@ export default {
},
},
methods
:
{
methods
:
{
handleVulnerabilityStateChange
(
newState
)
{
refreshHeader
()
{
if
(
newState
)
{
this
.
$refs
.
header
.
refreshVulnerability
();
this
.
$refs
.
footer
.
fetchDiscussions
();
},
}
else
{
refreshFooter
()
{
this
.
$refs
.
header
.
refreshVulnerability
();
this
.
$refs
.
footer
.
fetchDiscussions
();
}
},
},
},
},
};
};
...
@@ -88,13 +87,13 @@ export default {
...
@@ -88,13 +87,13 @@ export default {
<vulnerability-header
<vulnerability-header
ref=
"header"
ref=
"header"
:initial-vulnerability=
"vulnerability"
:initial-vulnerability=
"vulnerability"
@
vulnerability-state-change=
"
handleVulnerabilityStateChange
"
@
vulnerability-state-change=
"
refreshFooter
"
/>
/>
<vulnerability-details
:vulnerability=
"vulnerability"
/>
<vulnerability-details
:vulnerability=
"vulnerability"
/>
<vulnerability-footer
<vulnerability-footer
ref=
"footer"
ref=
"footer"
v-bind=
"footerInfo"
v-bind=
"footerInfo"
@
vulnerability-state-change=
"
handleVulnerabilityStateChange
"
@
vulnerability-state-change=
"
refreshHeader
"
/>
/>
</div>
</div>
</
template
>
</
template
>
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