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
92d6e517
Commit
92d6e517
authored
Dec 24, 2021
by
David Pisek
Committed by
Savas Vedova
Dec 24, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update security configuration tabs to utilize lazy loading
parent
b536ad6e
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
1 deletion
+5
-1
app/assets/javascripts/security_configuration/components/app.vue
...ets/javascripts/security_configuration/components/app.vue
+1
-1
spec/frontend/security_configuration/components/app_spec.js
spec/frontend/security_configuration/components/app_spec.js
+4
-0
No files found.
app/assets/javascripts/security_configuration/components/app.vue
View file @
92d6e517
...
...
@@ -160,7 +160,7 @@ export default {
</
template
>
</user-callout-dismisser>
<gl-tabs
content-class=
"gl-pt-0"
sync-active-tab-with-query-params
>
<gl-tabs
content-class=
"gl-pt-0"
sync-active-tab-with-query-params
lazy
>
<gl-tab
data-testid=
"security-testing-tab"
:title=
"$options.i18n.securityTesting"
...
...
spec/frontend/security_configuration/components/app_spec.js
View file @
92d6e517
...
...
@@ -159,6 +159,10 @@ describe('App component', () => {
expect
(
findGlTabs
().
props
(
'
syncActiveTabWithQueryParams
'
)).
toBe
(
true
);
});
it
(
'
lazy loads each tab
'
,
()
=>
{
expect
(
findGlTabs
().
attributes
(
'
lazy
'
)).
not
.
toBe
(
undefined
);
});
it
(
'
renders correct amount of tabs
'
,
()
=>
{
expect
(
findTabs
()).
toHaveLength
(
expectedTabs
.
length
);
});
...
...
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