diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2022-08-01 06:12:25 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2022-08-01 06:12:25 +0000 |
commit | 2bfa43cf3a8b0bb25a85066ff48db58f068bc493 (patch) | |
tree | 7ba5f89b4953742f025f5c8e0911cd1f964bb2e5 /app/assets/javascripts/groups/components/group_item.vue | |
parent | 188f99dcc3de4678b308851d1cd8d26a200393cd (diff) | |
download | gitlab-ce-2bfa43cf3a8b0bb25a85066ff48db58f068bc493.tar.gz |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/assets/javascripts/groups/components/group_item.vue')
-rw-r--r-- | app/assets/javascripts/groups/components/group_item.vue | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/app/assets/javascripts/groups/components/group_item.vue b/app/assets/javascripts/groups/components/group_item.vue index 7345afb8545..90830f344d5 100644 --- a/app/assets/javascripts/groups/components/group_item.vue +++ b/app/assets/javascripts/groups/components/group_item.vue @@ -16,12 +16,9 @@ import UserAccessRoleBadge from '~/vue_shared/components/user_access_role_badge. import { AVATAR_SHAPE_OPTION_RECT } from '~/vue_shared/constants'; import { helpPagePath } from '~/helpers/help_page_helper'; import { __ } from '~/locale'; -import { - VISIBILITY_TYPE_ICON, - GROUP_VISIBILITY_TYPE, - ITEM_TYPE, - VISIBILITY_PRIVATE, -} from '../constants'; +import { VISIBILITY_LEVELS_ENUM } from '~/visibility_level/constants'; +import { VISIBILITY_TYPE_ICON, GROUP_VISIBILITY_TYPE, ITEM_TYPE } from '../constants'; + import eventHub from '../event_hub'; import itemActions from './item_actions.vue'; @@ -114,8 +111,8 @@ export default { shouldShowVisibilityWarning() { return ( this.action === 'shared' && - this.currentGroupVisibility === VISIBILITY_PRIVATE && - this.group.visibility !== VISIBILITY_PRIVATE + VISIBILITY_LEVELS_ENUM[this.group.visibility] > + VISIBILITY_LEVELS_ENUM[this.currentGroupVisibility] ); }, }, @@ -142,7 +139,7 @@ export default { shareProjectsWithGroupsHelpPagePath: helpPagePath( 'user/project/members/share_project_with_groups', { - anchor: 'share-a-public-project-with-private-group', + anchor: 'sharing-projects-with-groups-of-a-higher-restrictive-visibility-level', }, ), safeHtmlConfig: { ADD_TAGS: ['gl-emoji'] }, |