'AlertService|You must provide this URL and authorization key to authorize an external service to send alerts to GitLab. You can provide this URL and key to multiple services. After configuring an external service, alerts from your service will display on the GitLab %{linkStart}Alerts%{linkEnd} page.',
),
setupSection:s__(
"AlertService|Review your external service's documentation to learn where to provide this information to your external service, and the %{linkStart}GitLab documentation%{linkEnd} to learn more about configuring your endpoint.",
),
},
COPY_TO_CLIPBOARD:__('Copy'),
RESET_KEY:__('Reset key'),
components:{
GlButton,
GlFormGroup,
GlFormInput,
GlLink,
GlModal,
GlSprintf,
ClipboardButton,
ToggleButton,
},
directives:{
'gl-modal':GlModalDirective,
},
props:{
alertsSetupUrl:{
type:String,
required:true,
},
alertsUsageUrl:{
type:String,
required:true,
},
initialAuthorizationKey:{
type:String,
required:false,
default:'',
},
formPath:{
type:String,
required:true,
},
url:{
type:String,
required:true,
},
initialActivated:{
type:Boolean,
required:true,
},
isDisabled:{
type:Boolean,
required:false,
default:false,
},
},
data(){
return{
activated:this.initialActivated,
loadingActivated:false,
authorizationKey:this.initialAuthorizationKey,
};
},
computed:{
sections(){
return[
{
text:this.$options.i18n.usageSection,
url:this.alertsUsageUrl,
},
{
text:this.$options.i18n.setupSection,
url:this.alertsSetupUrl,
},
];
},
},
methods:{
resetKey(){
returnaxios
.put(this.formPath,{service:{token:''}})
.then((res)=>{
this.authorizationKey=res.data.token;
})
.catch(()=>{
createFlash(__('Failed to reset key. Please try again.'));
msgid "AlertMappingBuilder|Title is a required field for alerts in GitLab. Should the payload field you specified not be available, specifiy which field we should use instead. "
msgid "AlertMappingBuilder|Title is a required field for alerts in GitLab. Should the payload field you specified not be available, specifiy which field we should use instead. "
msgstr ""
msgstr ""
msgid "AlertService|Review your external service's documentation to learn where to provide this information to your external service, and the %{linkStart}GitLab documentation%{linkEnd} to learn more about configuring your endpoint."
msgstr ""
msgid "AlertService|You must provide this URL and authorization key to authorize an external service to send alerts to GitLab. You can provide this URL and key to multiple services. After configuring an external service, alerts from your service will display on the GitLab %{linkStart}Alerts%{linkEnd} page."
msgstr ""
msgid "AlertSettings|1. Select integration type"
msgid "AlertSettings|1. Select integration type"
msgstr ""
msgstr ""
...
@@ -24967,9 +24961,6 @@ msgstr ""
...
@@ -24967,9 +24961,6 @@ msgstr ""
msgid "Reset to project defaults"
msgid "Reset to project defaults"
msgstr ""
msgstr ""
msgid "Resetting the authorization key for this project will require updating the authorization key in every alert source it is enabled in."
msgstr ""
msgid "Resetting the authorization key will invalidate the previous key. Existing alert configurations will need to be updated with the new key."
msgid "Resetting the authorization key will invalidate the previous key. Existing alert configurations will need to be updated with the new key."
exports[`AlertsServiceForm with default values shows description and docs links 1`] = `"<p><gl-sprintf-stub message=\\"You must provide this URL and authorization key to authorize an external service to send alerts to GitLab. You can provide this URL and key to multiple services. After configuring an external service, alerts from your service will display on the GitLab %{linkStart}Alerts%{linkEnd} page.\\"></gl-sprintf-stub></p><p><gl-sprintf-stub message=\\"Review your external service's documentation to learn where to provide this information to your external service, and the %{linkStart}GitLab documentation%{linkEnd} to learn more about configuring your endpoint.\\"></gl-sprintf-stub></p>"`;