Skip to content

Commit

Permalink
feat: Rollout Dashboard should allow user select namespace. Put the l…
Browse files Browse the repository at this point in the history
…abel for NS list
  • Loading branch information
perenesenko committed Jun 21, 2021
1 parent e6eec3d commit f63499c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 3 additions & 1 deletion ui/src/app/components/header/header.scss
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,11 @@
display: flex;
align-items: center;
}
&__version {
&__label {
color: $shine;
margin: 0 15px;
margin: auto;
padding: 5px;
}
&__namespace {
color: black;
Expand Down
3 changes: 2 additions & 1 deletion ui/src/app/components/header/header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ export const Header = (props: {pageHasShortcuts: boolean; changeNamespace: (val:
<InfoItemRow label={'NS:'} items={{content: namespaceInfo.namespace}} />
) : (
<ThemeDiv className='rollouts-header__namespace'>
<div className='rollouts-header__label'>NS:</div>
<Autocomplete items={namespaceInfo.availableNamespaces || []}
placeholder='Namespace'
onChange={(el) => setNsInput(el.target.value)}
Expand All @@ -66,7 +67,7 @@ export const Header = (props: {pageHasShortcuts: boolean; changeNamespace: (val:
/>
</ThemeDiv>
)}
<div className='rollouts-header__version'>{version}</div>
<div className='rollouts-header__label'>{version}</div>
</div>
</GenericHeader>
);
Expand Down

0 comments on commit f63499c

Please sign in to comment.