You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: app/assets/javascripts/admin/broadcast_messages/components/message_form.vue
+36-1Lines changed: 36 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -9,6 +9,7 @@ import {
9
9
GlFormInput,
10
10
GlFormSelect,
11
11
GlFormTextarea,
12
+
GlModal,
12
13
} from'@gitlab/ui';
13
14
importaxiosfrom'~/lib/utils/axios_utils';
14
15
import { s__, __ } from'~/locale';
@@ -43,6 +44,7 @@ export default {
43
44
GlFormInput,
44
45
GlFormSelect,
45
46
GlFormTextarea,
47
+
GlModal,
46
48
},
47
49
directives: {
48
50
SafeHtml,
@@ -85,6 +87,12 @@ export default {
85
87
showInCliDescription:s__(
86
88
'BroadcastMessages|Show the broadcast message in a command-line interface as a Git remote response',
87
89
),
90
+
confirm: {
91
+
title:s__('BroadcastMessages|Security Notice'),
92
+
text:s__(
93
+
'BroadcastMessages|Broadcast messages must not contain sensitive information. All broadcast messages are publicly accessible through the API, regardless of path or role scoping.',
94
+
),
95
+
},
88
96
},
89
97
messageThemes:THEMES,
90
98
messageTypes:TYPES,
@@ -238,14 +246,31 @@ export default {
238
246
}
239
247
returnTARGET_ALL;
240
248
},
249
+
confirmSubmit() {
250
+
this.$refs.confirmModal.show();
251
+
},
241
252
},
242
253
safeHtmlConfig: {
243
254
ADD_TAGS: ['use'],
244
255
},
256
+
modal: {
257
+
actionPrimary: {
258
+
text:s__('BroadcastMessages|I understand and confirm'),
0 commit comments