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/components/app_edit.vue')
-rw-r--r--app/assets/javascripts/releases/components/app_edit.vue9
1 files changed, 9 insertions, 0 deletions
diff --git a/app/assets/javascripts/releases/components/app_edit.vue b/app/assets/javascripts/releases/components/app_edit.vue
index 6f4baaa5d74..4fa0e96217a 100644
--- a/app/assets/javascripts/releases/components/app_edit.vue
+++ b/app/assets/javascripts/releases/components/app_edit.vue
@@ -7,6 +7,8 @@ import MarkdownField from '~/vue_shared/components/markdown/field.vue';
import autofocusonshow from '~/vue_shared/directives/autofocusonshow';
import { BACK_URL_PARAM } from '~/releases/constants';
import { getParameterByName } from '~/lib/utils/common_utils';
+import AssetLinksForm from './asset_links_form.vue';
+import glFeatureFlagsMixin from '~/vue_shared/mixins/gl_feature_flags_mixin';
export default {
name: 'ReleaseEditApp',
@@ -16,10 +18,12 @@ export default {
GlButton,
GlLink,
MarkdownField,
+ AssetLinksForm,
},
directives: {
autofocusonshow,
},
+ mixins: [glFeatureFlagsMixin()],
computed: {
...mapState('detail', [
'isFetchingRelease',
@@ -80,6 +84,9 @@ export default {
cancelPath() {
return getParameterByName(BACK_URL_PARAM) || this.releasesPagePath;
},
+ showAssetLinksForm() {
+ return this.glFeatures.releaseAssetLinkEditing;
+ },
},
created() {
this.fetchRelease();
@@ -153,6 +160,8 @@ export default {
</div>
</gl-form-group>
+ <asset-links-form v-if="showAssetLinksForm" />
+
<div class="d-flex pt-3">
<gl-button
class="mr-auto js-submit-button"