Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2020-08-17 15:10:12 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2020-08-17 15:10:12 +0300
commit4203215d542505bba491a01d637479934c8005d6 (patch)
tree000a956ac60247021ff8c36a1a17a1ea6ed1ff38 /app/assets/javascripts/incidents
parent325318e2ddfcaedf0527053dd3c9bd62db547089 (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/assets/javascripts/incidents')
-rw-r--r--app/assets/javascripts/incidents/components/incidents_list.vue9
-rw-r--r--app/assets/javascripts/incidents/list.js2
2 files changed, 10 insertions, 1 deletions
diff --git a/app/assets/javascripts/incidents/components/incidents_list.vue b/app/assets/javascripts/incidents/components/incidents_list.vue
index ecd8acb449e..157e6f7b0ba 100644
--- a/app/assets/javascripts/incidents/components/incidents_list.vue
+++ b/app/assets/javascripts/incidents/components/incidents_list.vue
@@ -88,6 +88,7 @@ export default {
'projectPath',
'newIssuePath',
'incidentTemplateName',
+ 'incidentType',
'issuePath',
'publishedAvailable',
],
@@ -179,7 +180,13 @@ export default {
};
},
newIncidentPath() {
- return mergeUrlParams({ issuable_template: this.incidentTemplateName }, this.newIssuePath);
+ return mergeUrlParams(
+ {
+ issuable_template: this.incidentTemplateName,
+ 'issue[issue_type]': this.incidentType,
+ },
+ this.newIssuePath,
+ );
},
availableFields() {
return this.publishedAvailable
diff --git a/app/assets/javascripts/incidents/list.js b/app/assets/javascripts/incidents/list.js
index 3809742e32b..ac49ad63ad1 100644
--- a/app/assets/javascripts/incidents/list.js
+++ b/app/assets/javascripts/incidents/list.js
@@ -12,6 +12,7 @@ export default () => {
projectPath,
newIssuePath,
incidentTemplateName,
+ incidentType,
issuePath,
publishedAvailable,
} = domEl.dataset;
@@ -25,6 +26,7 @@ export default () => {
provide: {
projectPath,
incidentTemplateName,
+ incidentType,
newIssuePath,
issuePath,
publishedAvailable,