diff options
Diffstat (limited to 'app/assets/javascripts/admin/application_settings/setup_service_usage_data.js')
-rw-r--r-- | app/assets/javascripts/admin/application_settings/setup_service_usage_data.js | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/app/assets/javascripts/admin/application_settings/setup_service_usage_data.js b/app/assets/javascripts/admin/application_settings/setup_service_usage_data.js index 5a354bf8fd1..a88efbd89a8 100644 --- a/app/assets/javascripts/admin/application_settings/setup_service_usage_data.js +++ b/app/assets/javascripts/admin/application_settings/setup_service_usage_data.js @@ -1,9 +1,15 @@ import PayloadPreviewer from '~/pages/admin/application_settings/payload_previewer'; +import PayloadDownloader from '~/pages/admin/application_settings/payload_downloader'; export default () => { const payloadPreviewTrigger = document.querySelector('.js-payload-preview-trigger'); + const payloadDownloadTrigger = document.querySelector('.js-payload-download-trigger'); if (payloadPreviewTrigger) { new PayloadPreviewer(payloadPreviewTrigger).init(); } + + if (payloadDownloadTrigger) { + new PayloadDownloader(payloadDownloadTrigger).init(); + } }; |