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
b176818d
Commit
b176818d
authored
Feb 24, 2021
by
Coung Ngo
Committed by
Mike Greiling
Feb 24, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove refs from environment_picker.vue
Remove refs as they are not used in production code
parent
7ec12ca8
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
10 deletions
+6
-10
ee/app/assets/javascripts/threat_monitoring/components/environment_picker.vue
...ripts/threat_monitoring/components/environment_picker.vue
+3
-8
ee/spec/frontend/threat_monitoring/components/environment_picker_spec.js
...d/threat_monitoring/components/environment_picker_spec.js
+3
-2
No files found.
ee/app/assets/javascripts/threat_monitoring/components/environment_picker.vue
View file @
b176818d
...
...
@@ -42,7 +42,6 @@ export default {
>
<gl-dropdown
:id=
"$options.environmentFilterId"
ref=
"environmentsDropdown"
class=
"gl-display-flex"
toggle-class=
"gl-truncate"
:text=
"environmentName"
...
...
@@ -51,16 +50,12 @@ export default {
<gl-dropdown-item
v-for=
"environment in environments"
:key=
"environment.id"
ref=
"environmentsDropdownItem"
@
click=
"setCurrentEnvironmentId(environment.id)"
>
{{
environment
.
name
}}
</gl-dropdown-item
>
<gl-dropdown-item
v-if=
"includeAll"
ref=
"environmentsDropdownItem"
@
click=
"setAllEnvironments"
>
{{
$options
.
ALL_ENVIRONMENT_NAME
}}
</gl-dropdown-item
>
<gl-dropdown-item
v-if=
"includeAll"
@
click=
"setAllEnvironments"
>
{{
$options
.
ALL_ENVIRONMENT_NAME
}}
</gl-dropdown-item>
</gl-dropdown>
</gl-form-group>
</
template
>
ee/spec/frontend/threat_monitoring/components/environment_picker_spec.js
View file @
b176818d
import
{
GlDropdown
,
GlDropdownItem
}
from
'
@gitlab/ui
'
;
import
{
shallowMount
}
from
'
@vue/test-utils
'
;
import
EnvironmentPicker
from
'
ee/threat_monitoring/components/environment_picker.vue
'
;
import
{
...
...
@@ -25,8 +26,8 @@ describe('EnvironmentPicker component', () => {
});
};
const
findEnvironmentsDropdown
=
()
=>
wrapper
.
find
({
ref
:
'
environmentsDropdown
'
}
);
const
findEnvironmentsDropdownItems
=
()
=>
wrapper
.
findAll
({
ref
:
'
environmentsDropdownItem
'
}
);
const
findEnvironmentsDropdown
=
()
=>
wrapper
.
find
Component
(
GlDropdown
);
const
findEnvironmentsDropdownItems
=
()
=>
wrapper
.
findAll
Components
(
GlDropdownItem
);
afterEach
(()
=>
{
wrapper
.
destroy
();
...
...
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