debian-mirror-gitlab/app/assets/javascripts/integrations/edit/components/confirmation_modal.vue

56 lines
1.1 KiB
Vue
Raw Normal View History

2021-01-03 14:25:43 +05:30
<script>
import { GlModal } from '@gitlab/ui';
import { __ } from '~/locale';
export default {
components: {
GlModal,
},
2022-01-26 12:08:38 +05:30
2021-01-03 14:25:43 +05:30
computed: {
primaryProps() {
return {
text: __('Save'),
2022-01-26 12:08:38 +05:30
attributes: [{ variant: 'confirm' }, { category: 'primary' }],
2021-01-03 14:25:43 +05:30
};
},
cancelProps() {
return {
text: __('Cancel'),
};
},
},
methods: {
onSubmit() {
this.$emit('submit');
},
},
};
</script>
<template>
<gl-modal
modal-id="confirmSaveIntegration"
size="sm"
:title="s__('Integrations|Save settings?')"
:action-primary="primaryProps"
:action-cancel="cancelProps"
@primary="onSubmit"
>
<p>
{{
s__(
'Integrations|Saving will update the default settings for all projects that are not using custom settings.',
)
}}
</p>
<p class="gl-mb-0">
{{
s__(
2021-01-29 00:20:46 +05:30
'Integrations|Projects using custom settings will not be impacted unless the project owner chooses to use parent level defaults.',
2021-01-03 14:25:43 +05:30
)
}}
</p>
</gl-modal>
</template>