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:
Diffstat (limited to 'app/assets/javascripts/releases/stores/modules/edit_new/state.js')
-rw-r--r--app/assets/javascripts/releases/stores/modules/edit_new/state.js9
1 files changed, 8 insertions, 1 deletions
diff --git a/app/assets/javascripts/releases/stores/modules/edit_new/state.js b/app/assets/javascripts/releases/stores/modules/edit_new/state.js
index 33cb3ee06d0..cb447cf9aaf 100644
--- a/app/assets/javascripts/releases/stores/modules/edit_new/state.js
+++ b/app/assets/javascripts/releases/stores/modules/edit_new/state.js
@@ -1,4 +1,5 @@
export default ({
+ isExistingRelease,
projectId,
groupId,
groupMilestonesAvailable = false,
@@ -10,10 +11,13 @@ export default ({
newMilestonePath,
releasesPagePath,
editReleaseDocsPath,
+ upcomingReleaseDocsPath,
+ deleteReleaseDocsPath = '',
tagName = null,
defaultBranch = null,
}) => ({
+ isExistingRelease,
projectId,
groupId,
groupMilestonesAvailable: Boolean(groupMilestonesAvailable),
@@ -25,12 +29,15 @@ export default ({
newMilestonePath,
releasesPagePath,
editReleaseDocsPath,
+ upcomingReleaseDocsPath,
+ deleteReleaseDocsPath,
/**
* The name of the tag associated with the release, provided by the backend.
- * When creating a new release, this value is null.
+ * When creating a new release, this is the default from the URL
*/
tagName,
+ showCreateFrom: !tagName,
defaultBranch,
createFrom: defaultBranch,