summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorMike Greiling <mike@pixelcog.com>2018-02-02 16:22:26 -0600
committerMike Greiling <mike@pixelcog.com>2018-02-16 12:45:49 -0600
commite95d4822960c6541bb429479853b8232aa669335 (patch)
tree462e902b18b9d867f69c883ccfd8cbe23feee185 /app
parent96feb536e426e9f1f54fa14f50cab9f2a78754be (diff)
downloadgitlab-ce-e95d4822960c6541bb429479853b8232aa669335.tar.gz
migrate admin:jobs:index to static bundle
Diffstat (limited to 'app')
-rw-r--r--app/assets/javascripts/pages/admin/jobs/index/index.js6
1 files changed, 2 insertions, 4 deletions
diff --git a/app/assets/javascripts/pages/admin/jobs/index/index.js b/app/assets/javascripts/pages/admin/jobs/index/index.js
index 31d58eabaaf..5a4f8c6e745 100644
--- a/app/assets/javascripts/pages/admin/jobs/index/index.js
+++ b/app/assets/javascripts/pages/admin/jobs/index/index.js
@@ -1,12 +1,10 @@
import Vue from 'vue';
-
import Translate from '~/vue_shared/translate';
-
import stopJobsModal from './components/stop_jobs_modal.vue';
Vue.use(Translate);
-export default () => {
+document.addEventListener('DOMContentLoaded', () => {
const stopJobsButton = document.getElementById('stop-jobs-button');
if (stopJobsButton) {
// eslint-disable-next-line no-new
@@ -27,4 +25,4 @@ export default () => {
},
});
}
-};
+});