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
8431d8d1
Commit
8431d8d1
authored
Feb 11, 2022
by
Kerem Yalçınkaya
Committed by
Savas Vedova
Feb 14, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update bulk status update message
parent
d1fb9295
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
1 deletion
+21
-1
ee/app/assets/javascripts/security_dashboard/components/shared/selection_summary.vue
...ecurity_dashboard/components/shared/selection_summary.vue
+21
-1
No files found.
ee/app/assets/javascripts/security_dashboard/components/shared/selection_summary.vue
View file @
8431d8d1
...
...
@@ -5,6 +5,8 @@ import eventHub from 'ee/security_dashboard/utils/event_hub';
import
{
__
,
s__
,
n__
}
from
'
~/locale
'
;
import
toast
from
'
~/vue_shared/plugins/global_toast
'
;
import
StatusDropdown
from
'
./status_dropdown.vue
'
;
import
{
actions
}
from
'
codesandbox-api
'
;
import
{
queryTypes
}
from
'
../../../../../../../app/assets/javascripts/custom_metrics/constants
'
;
export
default
{
name
:
'
SelectionSummary
'
,
...
...
@@ -82,7 +84,16 @@ export default {
this
.
isSubmitting
=
false
;
if
(
fulfilledCount
>
0
)
{
toast
(
this
.
$options
.
i18n
.
vulnerabilitiesUpdated
(
fulfilledCount
));
if
(
this
.
selectedStatus
==
"
dismiss
"
){
toast
(
this
.
$options
.
i18n
.
vulnerabilities_set_to_dissmissed
(
fulfilledCount
));
// added
}
else
if
(
this
.
selectedStatus
==
"
resolve
"
){
toast
(
this
.
$options
.
i18n
.
vulnerabilities_set_to_resolved
(
fulfilledCount
));
// added
}
else
if
(
this
.
selectedStatus
==
"
confirm
"
){
toast
(
this
.
$options
.
i18n
.
vulnerabilities_set_to_confirmed
(
fulfilledCount
));
// added
}
else
if
(
this
.
selectedStatus
==
"
revert
"
){
toast
(
this
.
$options
.
i18n
.
vulnerabilities_set_to_needs_triage
(
fulfilledCount
));
// added
}
eventHub
.
$emit
(
'
vulnerabilities-updated
'
,
this
);
}
...
...
@@ -98,6 +109,14 @@ export default {
cancel
:
__
(
'
Cancel
'
),
selected
:
__
(
'
Selected
'
),
changeStatus
:
s__
(
'
SecurityReports|Change status
'
),
vulnerabilities_set_to_confirmed
:
(
count
)
=>
n__
(
'
%d vulnerability set to confirmed
'
,
'
%d vulnerabilities set to confirmed
'
,
count
),
vulnerabilities_set_to_needs_triage
:
(
count
)
=>
n__
(
'
%d vulnerability set to needs triage
'
,
'
%d vulnerabilities set to needs triage
'
,
count
),
vulnerabilities_set_to_resolved
:
(
count
)
=>
n__
(
'
%d vulnerability set to resolved
'
,
'
%d vulnerabilities set to resolved
'
,
count
),
vulnerabilities_set_to_dissmissed
:
(
count
)
=>
n__
(
'
%d vulnerability set to dissmissed
'
,
'
%d vulnerabilities set to dissmessed as:[dismissal type]
'
,
count
),
vulnerabilitiesUpdated
:
(
count
)
=>
n__
(
'
%d vulnerability updated
'
,
'
%d vulnerabilities updated
'
,
count
),
vulnerabilitiesUpdateFailed
:
(
vulnIds
)
=>
...
...
@@ -140,3 +159,4 @@ export default {
</div>
</gl-collapse>
</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