diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-03-25 03:08:11 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-03-25 03:08:11 +0300 |
commit | 23bc19cb73aad969c9636b8b935111645e809e54 (patch) | |
tree | 887c9e014f8345f577769db4f75315ca59853b98 /app/assets | |
parent | c4db541c1b2c97ab1eda354ea3899489fe5c33e5 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/assets')
-rw-r--r-- | app/assets/javascripts/pages/projects/shared/permissions/components/settings_panel.vue | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/app/assets/javascripts/pages/projects/shared/permissions/components/settings_panel.vue b/app/assets/javascripts/pages/projects/shared/permissions/components/settings_panel.vue index faaa65b1a16..a3743ded601 100644 --- a/app/assets/javascripts/pages/projects/shared/permissions/components/settings_panel.vue +++ b/app/assets/javascripts/pages/projects/shared/permissions/components/settings_panel.vue @@ -1,4 +1,6 @@ <script> +import { GlSprintf, GlLink } from '@gitlab/ui'; + import settingsMixin from 'ee_else_ce/pages/projects/shared/permissions/mixins/settings_pannel_mixin'; import { s__ } from '~/locale'; import projectFeatureSetting from './project_feature_setting.vue'; @@ -19,6 +21,8 @@ export default { projectFeatureSetting, projectFeatureToggle, projectSettingRow, + GlSprintf, + GlLink, }, mixins: [settingsMixin], @@ -67,6 +71,16 @@ export default { required: false, default: '', }, + lfsObjectsExist: { + type: Boolean, + required: false, + default: false, + }, + lfsObjectsRemovalHelpPath: { + type: String, + required: false, + default: '', + }, registryHelpPath: { type: String, required: false, @@ -377,6 +391,23 @@ export default { :disabled-input="!repositoryEnabled" name="project[lfs_enabled]" /> + <p v-if="!lfsEnabled && lfsObjectsExist"> + <gl-sprintf + :message=" + s__( + 'ProjectSettings|LFS objects from this repository are still available to forks. %{linkStart}How do I remove them?%{linkEnd}', + ) + " + > + <template #link="{ content }"> + <span class="d-block"> + <gl-link :href="lfsObjectsRemovalHelpPath" target="_blank"> + {{ content }} + </gl-link> + </span> + </template> + </gl-sprintf> + </p> </project-setting-row> <project-setting-row v-if="packagesAvailable" |