Commit fd51dca7 authored by Jonas Wälter's avatar Jonas Wälter Committed by Kushal Pandya

Add release tooltip for guest users

parent fa0da1ee
<script> <script>
import { GlTooltipDirective, GlLink, GlBadge, GlButton } from '@gitlab/ui'; import { GlTooltipDirective, GlLink, GlBadge, GlButton, GlIcon } from '@gitlab/ui';
import { setUrlParams } from '~/lib/utils/url_utility'; import { setUrlParams } from '~/lib/utils/url_utility';
import { BACK_URL_PARAM } from '~/releases/constants'; import { BACK_URL_PARAM } from '~/releases/constants';
...@@ -9,6 +9,7 @@ export default { ...@@ -9,6 +9,7 @@ export default {
GlLink, GlLink,
GlBadge, GlBadge,
GlButton, GlButton,
GlIcon,
}, },
directives: { directives: {
GlTooltip: GlTooltipDirective, GlTooltip: GlTooltipDirective,
...@@ -44,7 +45,19 @@ export default { ...@@ -44,7 +45,19 @@ export default {
<gl-link v-if="selfLink" :href="selfLink" class="font-size-inherit"> <gl-link v-if="selfLink" :href="selfLink" class="font-size-inherit">
{{ release.name }} {{ release.name }}
</gl-link> </gl-link>
<template v-else>{{ release.name }}</template> <template v-else>
{{ release.name }}
<gl-icon
v-gl-tooltip
name="lock"
:title="
__(
'Private - Guest users are not allowed to view detailed release information like title and source code.',
)
"
class="text-secondary gl-mb-2"
/>
</template>
<gl-badge v-if="release.upcomingRelease" variant="warning" class="align-middle">{{ <gl-badge v-if="release.upcomingRelease" variant="warning" class="align-middle">{{
__('Upcoming Release') __('Upcoming Release')
}}</gl-badge> }}</gl-badge>
......
---
title: Add release tooltip for guest users
merge_request: 53722
author: Jonas Wälter @wwwjon
type: changed
...@@ -22362,6 +22362,9 @@ msgstr "" ...@@ -22362,6 +22362,9 @@ msgstr ""
msgid "Private" msgid "Private"
msgstr "" msgstr ""
msgid "Private - Guest users are not allowed to view detailed release information like title and source code."
msgstr ""
msgid "Private - Project access must be granted explicitly to each user. If this project is part of a group, access will be granted to members of the group." msgid "Private - Project access must be granted explicitly to each user. If this project is part of a group, access will be granted to members of the group."
msgstr "" msgstr ""
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment