diff options
Diffstat (limited to 'app/assets/javascripts/integrations/edit/components/active_toggle.vue')
-rw-r--r-- | app/assets/javascripts/integrations/edit/components/active_toggle.vue | 50 |
1 files changed, 0 insertions, 50 deletions
diff --git a/app/assets/javascripts/integrations/edit/components/active_toggle.vue b/app/assets/javascripts/integrations/edit/components/active_toggle.vue deleted file mode 100644 index e6a96600539..00000000000 --- a/app/assets/javascripts/integrations/edit/components/active_toggle.vue +++ /dev/null @@ -1,50 +0,0 @@ -<script> -import { mapGetters } from 'vuex'; -import { GlFormGroup, GlToggle } from '@gitlab/ui'; -import eventHub from '../event_hub'; - -export default { - name: 'ActiveToggle', - components: { - GlFormGroup, - GlToggle, - }, - props: { - initialActivated: { - type: Boolean, - required: true, - }, - }, - data() { - return { - activated: this.initialActivated, - }; - }, - computed: { - ...mapGetters(['isInheriting']), - }, - mounted() { - // Initialize view - this.$nextTick(() => { - this.onToggle(this.activated); - }); - }, - methods: { - onToggle(e) { - eventHub.$emit('toggle', e); - }, - }, -}; -</script> - -<template> - <gl-form-group :label="__('Enable integration')" label-for="service[active]"> - <gl-toggle - v-model="activated" - name="service[active]" - class="gl-display-block gl-line-height-0" - :disabled="isInheriting" - @change="onToggle" - /> - </gl-form-group> -</template> |