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
bc0843c9
Commit
bc0843c9
authored
Jan 21, 2019
by
GitLab Bot
Browse files
Options
Browse Files
Download
Plain Diff
Automatic merge of gitlab-org/gitlab-ce master
parents
15d67855
d56b76a5
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
27 additions
and
6 deletions
+27
-6
app/assets/javascripts/lazy_loader.js
app/assets/javascripts/lazy_loader.js
+1
-0
app/assets/javascripts/pages/admin/application_settings/show/index.js
...avascripts/pages/admin/application_settings/show/index.js
+3
-0
app/assets/javascripts/pages/admin/index.js
app/assets/javascripts/pages/admin/index.js
+1
-5
app/views/shared/empty_states/_labels.html.haml
app/views/shared/empty_states/_labels.html.haml
+1
-1
changelogs/unreleased/56622-admin-settings-cannot-read-property-addeventlistener-of-null.yml
...ettings-cannot-read-property-addeventlistener-of-null.yml
+5
-0
qa/qa/page/label/index.rb
qa/qa/page/label/index.rb
+15
-0
spec/javascripts/test_bundle.js
spec/javascripts/test_bundle.js
+1
-0
No files found.
app/assets/javascripts/lazy_loader.js
View file @
bc0843c9
...
...
@@ -163,6 +163,7 @@ export default class LazyLoader {
img
.
removeAttribute
(
'
data-src
'
);
img
.
classList
.
remove
(
'
lazy
'
);
img
.
classList
.
add
(
'
js-lazy-loaded
'
);
img
.
classList
.
add
(
'
qa-js-lazy-loaded
'
);
}
}
}
app/assets/javascripts/pages/admin/application_settings/show/index.js
0 → 100644
View file @
bc0843c9
import
initUserInternalRegexPlaceholder
from
'
../../application_settings/account_and_limits
'
;
document
.
addEventListener
(
'
DOMContentLoaded
'
,
initUserInternalRegexPlaceholder
());
app/assets/javascripts/pages/admin/index.js
View file @
bc0843c9
import
initAdmin
from
'
./admin
'
;
import
initUserInternalRegexPlaceholder
from
'
./application_settings/account_and_limits
'
;
document
.
addEventListener
(
'
DOMContentLoaded
'
,
()
=>
{
initAdmin
();
initUserInternalRegexPlaceholder
();
});
document
.
addEventListener
(
'
DOMContentLoaded
'
,
initAdmin
());
app/views/shared/empty_states/_labels.html.haml
View file @
bc0843c9
.row.empty-state.labels
.col-12
.svg-content
.svg-content
.qa-label-svg
=
image_tag
'illustrations/labels.svg'
.col-12
.text-content
...
...
changelogs/unreleased/56622-admin-settings-cannot-read-property-addeventlistener-of-null.yml
0 → 100644
View file @
bc0843c9
---
title
:
Load initUserInternalRegexPlaceholder only when required
merge_request
:
24522
author
:
type
:
fixed
qa/qa/page/label/index.rb
View file @
bc0843c9
...
...
@@ -6,7 +6,22 @@ module QA
element
:label_create_new
end
view
'app/views/shared/empty_states/_labels.html.haml'
do
element
:label_svg
end
view
'app/assets/javascripts/lazy_loader.js'
do
element
:js_lazy_loaded
end
def
go_to_new_label
# The 'labels.svg' takes a fraction of a second to load after which the "New label" button shifts up a bit
# This can cause webdriver to miss the hit so we wait for the svg to load (implicitly with has_element?)
# before clicking the button.
within_element
(
:label_svg
)
do
has_element?
(
:js_lazy_loaded
)
end
click_element
:label_create_new
end
end
...
...
spec/javascripts/test_bundle.js
View file @
bc0843c9
...
...
@@ -193,6 +193,7 @@ if (process.env.BABEL_ENV === 'coverage') {
'
./terminal/terminal_bundle.js
'
,
'
./users/users_bundle.js
'
,
'
./issue_show/index.js
'
,
'
./pages/admin/application_settings/show/index.js
'
,
];
describe
(
'
Uncovered files
'
,
function
()
{
...
...
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