Skip to content
Snippets Groups Projects

Move "save settings" code from integration_settings_form.js to Vue component

Merged Tom Quirk requested to merge 342121-move-save-button-to-vue-component into master
All threads resolved!
12 files
+ 96
119
Compare changes
  • Side-by-side
  • Inline
Files
12
  • a84a2893
    Move 'save integration' code to Vue · a84a2893
    Tom Quirk authored
    Moves the integration save events from
    integration_settings_form.js to
    the Vue component.
    
    This commit also updates and adds necessary
    specs.
    
    No user-facing changes should be expected.
<script>
import { GlModal } from '@gitlab/ui';
import { mapGetters } from 'vuex';
import { __ } from '~/locale';
export default {
components: {
GlModal,
},
computed: {
...mapGetters(['isDisabled']),
primaryProps() {
return {
text: __('Save'),
attributes: [
{ variant: 'confirm' },
{ category: 'primary' },
{ disabled: this.isDisabled },
],
attributes: [{ variant: 'confirm' }, { category: 'primary' }],
};
},
cancelProps() {
Loading