diff options
Diffstat (limited to 'app/assets/javascripts/alerts_service_settings/index.js')
-rw-r--r-- | app/assets/javascripts/alerts_service_settings/index.js | 39 |
1 files changed, 0 insertions, 39 deletions
diff --git a/app/assets/javascripts/alerts_service_settings/index.js b/app/assets/javascripts/alerts_service_settings/index.js deleted file mode 100644 index ddba966ffb3..00000000000 --- a/app/assets/javascripts/alerts_service_settings/index.js +++ /dev/null @@ -1,39 +0,0 @@ -import Vue from 'vue'; -import { parseBoolean } from '~/lib/utils/common_utils'; -import AlertsServiceForm from './components/alerts_service_form.vue'; - -export default (el) => { - if (!el) { - return null; - } - - const { - activated: activatedStr, - alertsSetupUrl, - alertsUsageUrl, - formPath, - authorizationKey, - url, - disabled, - } = el.dataset; - - const activated = parseBoolean(activatedStr); - const isDisabled = parseBoolean(disabled); - - return new Vue({ - el, - render(createElement) { - return createElement(AlertsServiceForm, { - props: { - alertsSetupUrl, - alertsUsageUrl, - initialActivated: activated, - formPath, - initialAuthorizationKey: authorizationKey, - url, - isDisabled, - }, - }); - }, - }); -}; |