1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
<script>
import { GlModal } from '@gitlab/ui';
import { s__, __ } from '~/locale';
export default {
modal: {
id: 'delete-pipeline-schedule-modal',
deleteConfirmation: s__(
'PipelineSchedules|Are you sure you want to delete this pipeline schedule?',
),
actionPrimary: {
text: s__('PipelineSchedules|Delete pipeline schedule'),
attributes: [{ variant: 'danger' }],
},
actionCancel: {
text: __('Cancel'),
attributes: [],
},
},
components: {
GlModal,
},
props: {
visible: {
type: Boolean,
required: true,
},
},
};
</script>
<template>
<gl-modal
:visible="visible"
:title="$options.modal.actionPrimary.text"
:modal-id="$options.modal.id"
:action-primary="$options.modal.actionPrimary"
:action-cancel="$options.modal.actionCancel"
size="sm"
@primary="$emit('deleteSchedule')"
@hide="$emit('hideModal')"
>
{{ $options.modal.deleteConfirmation }}
</gl-modal>
</template>
|