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
bd859cb1
Commit
bd859cb1
authored
Feb 16, 2021
by
Coung Ngo
Committed by
David O'Regan
Feb 22, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Convert Threat Monitoring environment picker to GlDropdown
Convert the dropdown from GlDeprecatedDropdown to GlDropdown
parent
5aecf245
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
11 deletions
+16
-11
changelogs/unreleased/cngo-convert-threat-monitoring-environment-picker-to-gl-dropdown.yml
...t-threat-monitoring-environment-picker-to-gl-dropdown.yml
+5
-0
ee/app/assets/javascripts/threat_monitoring/components/environment_picker.vue
...ripts/threat_monitoring/components/environment_picker.vue
+11
-11
No files found.
changelogs/unreleased/cngo-convert-threat-monitoring-environment-picker-to-gl-dropdown.yml
0 → 100644
View file @
bd859cb1
---
title
:
Convert Threat Monitoring environment picker to GlDropdown
merge_request
:
54309
author
:
type
:
changed
ee/app/assets/javascripts/threat_monitoring/components/environment_picker.vue
View file @
bd859cb1
<
script
>
import
{
GlFormGroup
,
GlD
eprecatedDropdown
,
GlDeprecated
DropdownItem
}
from
'
@gitlab/ui
'
;
import
{
GlFormGroup
,
GlD
ropdown
,
Gl
DropdownItem
}
from
'
@gitlab/ui
'
;
import
{
mapActions
,
mapGetters
,
mapState
}
from
'
vuex
'
;
import
{
ALL_ENVIRONMENT_NAME
}
from
'
../constants
'
;
export
default
{
components
:
{
GlFormGroup
,
GlD
eprecatedD
ropdown
,
GlD
eprecatedD
ropdownItem
,
GlDropdown
,
GlDropdownItem
,
},
props
:
{
includeAll
:
{
...
...
@@ -40,27 +40,27 @@ export default {
:label-for=
"$options.environmentFilterId"
class=
"col-sm-6 col-md-4 col-lg-3 col-xl-2"
>
<gl-d
eprecated-d
ropdown
<gl-dropdown
:id=
"$options.environmentFilterId"
ref=
"environmentsDropdown"
class=
"
mb-0 d
-flex"
toggle-class=
"
d-flex justify-content-between text
-truncate"
class=
"
gl-display
-flex"
toggle-class=
"
gl
-truncate"
:text=
"environmentName"
:disabled=
"!canChangeEnvironment"
>
<gl-d
eprecated-d
ropdown-item
<gl-dropdown-item
v-for=
"environment in environments"
:key=
"environment.id"
ref=
"environmentsDropdownItem"
@
click=
"setCurrentEnvironmentId(environment.id)"
>
{{
environment
.
name
}}
</gl-d
eprecated-d
ropdown-item
>
{{
environment
.
name
}}
</gl-dropdown-item
>
<gl-d
eprecated-d
ropdown-item
<gl-dropdown-item
v-if=
"includeAll"
ref=
"environmentsDropdownItem"
@
click=
"setAllEnvironments"
>
{{
$options
.
ALL_ENVIRONMENT_NAME
}}
</gl-d
eprecated-d
ropdown-item
>
{{
$options
.
ALL_ENVIRONMENT_NAME
}}
</gl-dropdown-item
>
</gl-d
eprecated-d
ropdown>
</gl-dropdown>
</gl-form-group>
</
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