Skip to content

Commit

Permalink
Merge pull request #5885 from rak-phillip/chore/experimental-nav-items
Browse files Browse the repository at this point in the history
Add experimental flag to Containers & Snapshots nav items
  • Loading branch information
jandubois authored Oct 31, 2023
2 parents 7aad765 + 7c99428 commit a20019f
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 3 deletions.
13 changes: 12 additions & 1 deletion pkg/rancher-desktop/components/Nav.vue
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,14 @@
class="nav-badge"
:label="item.error.toString()"
/>
<i
v-if="item.experimental"
v-tooltip="{
content: t('prefs.experimental'),
placement: 'right',
}"
:class="`icon icon-flask`"
/>
</NuxtLink>
</li>
</ul>
Expand Down Expand Up @@ -180,12 +188,14 @@ ul {
padding: 0;

a {
display: flex;
align-items: center;
gap: 0.25rem;
color: var(--body-text);
text-decoration: none;
line-height: 24px;
padding: 7.5px 10px;
letter-spacing: 1.4px;
display: block;
outline: none;
}

Expand All @@ -204,6 +214,7 @@ a {
background-color: var(--nav-active);
}
}

.nav-badge {
line-height: initial;
letter-spacing: initial;
Expand Down
4 changes: 2 additions & 2 deletions pkg/rancher-desktop/window/constants.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
export const mainRoutes = [
{ route: '/General' },
{ route: '/Containers' },
{ route: '/Containers', experimental: true },
{ route: '/PortForwarding' },
{ route: '/Images' },
{ route: '/Snapshots' },
{ route: '/Snapshots', experimental: true },
{ route: '/Troubleshooting' },
{ route: '/Diagnostics' },
{ route: '/Extensions' },
Expand Down

0 comments on commit a20019f

Please sign in to comment.