Skip to content

Commit a20019f

Browse files
authored
Merge pull request #5885 from rak-phillip/chore/experimental-nav-items
Add experimental flag to Containers & Snapshots nav items
2 parents 7aad765 + 7c99428 commit a20019f

2 files changed

Lines changed: 14 additions & 3 deletions

File tree

pkg/rancher-desktop/components/Nav.vue

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,14 @@
1717
class="nav-badge"
1818
:label="item.error.toString()"
1919
/>
20+
<i
21+
v-if="item.experimental"
22+
v-tooltip="{
23+
content: t('prefs.experimental'),
24+
placement: 'right',
25+
}"
26+
:class="`icon icon-flask`"
27+
/>
2028
</NuxtLink>
2129
</li>
2230
</ul>
@@ -180,12 +188,14 @@ ul {
180188
padding: 0;
181189
182190
a {
191+
display: flex;
192+
align-items: center;
193+
gap: 0.25rem;
183194
color: var(--body-text);
184195
text-decoration: none;
185196
line-height: 24px;
186197
padding: 7.5px 10px;
187198
letter-spacing: 1.4px;
188-
display: block;
189199
outline: none;
190200
}
191201
@@ -204,6 +214,7 @@ a {
204214
background-color: var(--nav-active);
205215
}
206216
}
217+
207218
.nav-badge {
208219
line-height: initial;
209220
letter-spacing: initial;

pkg/rancher-desktop/window/constants.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
export const mainRoutes = [
22
{ route: '/General' },
3-
{ route: '/Containers' },
3+
{ route: '/Containers', experimental: true },
44
{ route: '/PortForwarding' },
55
{ route: '/Images' },
6-
{ route: '/Snapshots' },
6+
{ route: '/Snapshots', experimental: true },
77
{ route: '/Troubleshooting' },
88
{ route: '/Diagnostics' },
99
{ route: '/Extensions' },

0 commit comments

Comments
 (0)