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
8002f99e
Commit
8002f99e
authored
Oct 19, 2020
by
Olena Horal-Koretska
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Unwrap handlers from DOMContentLoaded in Monitor:Health pages
parent
67c136a6
Changes
10
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
23 additions
and
41 deletions
+23
-41
app/assets/javascripts/pages/projects/alert_management/details/index.js
...ascripts/pages/projects/alert_management/details/index.js
+1
-3
app/assets/javascripts/pages/projects/alert_management/index/index.js
...avascripts/pages/projects/alert_management/index/index.js
+1
-3
app/assets/javascripts/pages/projects/error_tracking/details/index.js
...avascripts/pages/projects/error_tracking/details/index.js
+1
-3
app/assets/javascripts/pages/projects/error_tracking/index/index.js
.../javascripts/pages/projects/error_tracking/index/index.js
+1
-3
app/assets/javascripts/pages/projects/incidents/index/index.js
...ssets/javascripts/pages/projects/incidents/index/index.js
+1
-3
app/assets/javascripts/pages/projects/incidents/show/index.js
...assets/javascripts/pages/projects/incidents/show/index.js
+5
-7
app/assets/javascripts/pages/projects/metrics_dashboard/index.js
...ets/javascripts/pages/projects/metrics_dashboard/index.js
+1
-1
app/assets/javascripts/pages/projects/settings/integrations/show/index.js
...cripts/pages/projects/settings/integrations/show/index.js
+2
-4
app/assets/javascripts/pages/projects/settings/operations/show/index.js
...ascripts/pages/projects/settings/operations/show/index.js
+8
-10
ee/app/assets/javascripts/pages/projects/settings/operations/show/index.js
...ascripts/pages/projects/settings/operations/show/index.js
+2
-4
No files found.
app/assets/javascripts/pages/projects/alert_management/details/index.js
View file @
8002f99e
import
AlertDetails
from
'
~/alert_management/details
'
;
document
.
addEventListener
(
'
DOMContentLoaded
'
,
()
=>
{
AlertDetails
(
'
#js-alert_details
'
);
});
AlertDetails
(
'
#js-alert_details
'
);
app/assets/javascripts/pages/projects/alert_management/index/index.js
View file @
8002f99e
import
AlertManagementList
from
'
~/alert_management/list
'
;
document
.
addEventListener
(
'
DOMContentLoaded
'
,
()
=>
{
AlertManagementList
();
});
AlertManagementList
();
app/assets/javascripts/pages/projects/error_tracking/details/index.js
View file @
8002f99e
import
ErrorTrackingDetails
from
'
~/error_tracking/details
'
;
document
.
addEventListener
(
'
DOMContentLoaded
'
,
()
=>
{
ErrorTrackingDetails
();
});
ErrorTrackingDetails
();
app/assets/javascripts/pages/projects/error_tracking/index/index.js
View file @
8002f99e
import
ErrorTrackingList
from
'
~/error_tracking/list
'
;
document
.
addEventListener
(
'
DOMContentLoaded
'
,
()
=>
{
ErrorTrackingList
();
});
ErrorTrackingList
();
app/assets/javascripts/pages/projects/incidents/index/index.js
View file @
8002f99e
import
IncidentsList
from
'
~/incidents/list
'
;
document
.
addEventListener
(
'
DOMContentLoaded
'
,
()
=>
{
IncidentsList
();
});
IncidentsList
();
app/assets/javascripts/pages/projects/incidents/show/index.js
View file @
8002f99e
...
...
@@ -2,10 +2,8 @@ import initSidebarBundle from '~/sidebar/sidebar_bundle';
import
initRelatedIssues
from
'
~/related_issues
'
;
import
initShow
from
'
../../issues/show
'
;
document
.
addEventListener
(
'
DOMContentLoaded
'
,
()
=>
{
initShow
();
if
(
!
gon
.
features
?.
vueIssuableSidebar
)
{
initSidebarBundle
();
}
initRelatedIssues
();
});
initShow
();
if
(
!
gon
.
features
?.
vueIssuableSidebar
)
{
initSidebarBundle
();
}
initRelatedIssues
();
app/assets/javascripts/pages/projects/metrics_dashboard/index.js
View file @
8002f99e
import
monitoringApp
from
'
~/monitoring/monitoring_app
'
;
document
.
addEventListener
(
'
DOMContentLoaded
'
,
monitoringApp
);
monitoringApp
(
);
app/assets/javascripts/pages/projects/settings/integrations/show/index.js
View file @
8002f99e
import
PersistentUserCallout
from
'
~/persistent_user_callout
'
;
document
.
addEventListener
(
'
DOMContentLoaded
'
,
()
=>
{
const
callout
=
document
.
querySelector
(
'
.js-webhooks-moved-alert
'
);
PersistentUserCallout
.
factory
(
callout
);
});
const
callout
=
document
.
querySelector
(
'
.js-webhooks-moved-alert
'
);
PersistentUserCallout
.
factory
(
callout
);
app/assets/javascripts/pages/projects/settings/operations/show/index.js
View file @
8002f99e
...
...
@@ -5,13 +5,11 @@ import mountGrafanaIntegration from '~/grafana_integration';
import
initSettingsPanels
from
'
~/settings_panels
'
;
import
initIncidentsSettings
from
'
~/incidents_settings
'
;
document
.
addEventListener
(
'
DOMContentLoaded
'
,
()
=>
{
initIncidentsSettings
();
mountErrorTrackingForm
();
mountOperationSettings
();
mountGrafanaIntegration
();
if
(
!
IS_EE
)
{
initSettingsPanels
();
}
mountAlertsSettings
(
document
.
querySelector
(
'
.js-alerts-settings
'
));
});
initIncidentsSettings
();
mountErrorTrackingForm
();
mountOperationSettings
();
mountGrafanaIntegration
();
if
(
!
IS_EE
)
{
initSettingsPanels
();
}
mountAlertsSettings
(
document
.
querySelector
(
'
.js-alerts-settings
'
));
ee/app/assets/javascripts/pages/projects/settings/operations/show/index.js
View file @
8002f99e
...
...
@@ -2,7 +2,5 @@ import '~/pages/projects/settings/operations/show/index';
import
mountStatusPageForm
from
'
ee/status_page_settings
'
;
import
initSettingsPanels
from
'
~/settings_panels
'
;
document
.
addEventListener
(
'
DOMContentLoaded
'
,
()
=>
{
mountStatusPageForm
();
initSettingsPanels
();
});
mountStatusPageForm
();
initSettingsPanels
();
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