diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-09-19 01:45:44 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-09-19 01:45:44 +0000 |
commit | 85dc423f7090da0a52c73eb66faf22ddb20efff9 (patch) | |
tree | 9160f299afd8c80c038f08e1545be119f5e3f1e1 /app/assets/javascripts/integrations/edit/components/active_toggle.vue | |
parent | 15c2c8c66dbe422588e5411eee7e68f1fa440bb8 (diff) | |
download | gitlab-ce-85dc423f7090da0a52c73eb66faf22ddb20efff9.tar.gz |
Add latest changes from gitlab-org/gitlab@13-4-stable-ee
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> |