Commit 9072a701 authored by Nathan Friend's avatar Nathan Friend

Remove folder from environment name

Before this commit, environments grouped together in a "folder" would
include the folder name in the UI.  This information was unnecessary
since the folder is also shown in the UI.

In addition, this commit also makes some minor changes to how tooltips
are displayed for both environments and folders.
parent bbbaa707
...@@ -459,12 +459,7 @@ export default { ...@@ -459,12 +459,7 @@ export default {
class="gl-responsive-table-row" class="gl-responsive-table-row"
role="row" role="row"
> >
<div <div class="table-section section-wrap section-15 text-truncate" role="gridcell">
v-gl-tooltip
:title="model.name"
class="table-section section-wrap section-15 text-truncate"
role="gridcell"
>
<div v-if="!model.isFolder" class="table-mobile-header" role="rowheader"> <div v-if="!model.isFolder" class="table-mobile-header" role="rowheader">
{{ s__('Environments|Environment') }} {{ s__('Environments|Environment') }}
</div> </div>
...@@ -473,14 +468,28 @@ export default { ...@@ -473,14 +468,28 @@ export default {
<icon :name="deployIconName" /> <icon :name="deployIconName" />
</span> </span>
<span v-if="!model.isFolder" class="environment-name table-mobile-content"> <span
<a class="qa-environment-link" :href="environmentPath"> {{ model.name }} </a> v-if="!model.isFolder"
v-gl-tooltip
:title="model.name"
class="environment-name table-mobile-content"
>
<a class="qa-environment-link" :href="environmentPath">
<span v-if="model.size === 1">{{ model.name }}</span>
<span v-else>{{ model.name_without_type }}</span>
</a>
<span v-if="isProtected" class="badge badge-success"> <span v-if="isProtected" class="badge badge-success">
{{ s__('Environments|protected') }} {{ s__('Environments|protected') }}
</span> </span>
</span> </span>
<span
<span v-else class="folder-name" role="button" @click="onClickFolder"> v-else
v-gl-tooltip
:title="model.folderName"
class="folder-name"
role="button"
@click="onClickFolder"
>
<icon :name="folderIconName" class="folder-icon" /> <icon :name="folderIconName" class="folder-icon" />
<icon name="folder" class="folder-icon" /> <icon name="folder" class="folder-icon" />
......
---
title: Remove unnecessary folder prefix from environment name
merge_request: 25600
author:
type: changed
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