Skip to content

Commit

Permalink
Fix manual time query input in service/k8s dashboards (#291)
Browse files Browse the repository at this point in the history
  • Loading branch information
MikeShi42 authored Feb 2, 2024
1 parent 340fdc4 commit 02c6e04
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 4 deletions.
11 changes: 9 additions & 2 deletions packages/app/src/KubernetesDashboardPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -808,15 +808,22 @@ export default function KubernetesDashboardPage() {
/>
</form>
</div>
<div className="d-flex" style={{ width: 350, height: 36 }}>
<form
className="d-flex"
style={{ width: 350, height: 36 }}
onSubmit={e => {
e.preventDefault();
onSearch(displayedTimeInputValue);
}}
>
<SearchTimeRangePicker
inputValue={displayedTimeInputValue}
setInputValue={setDisplayedTimeInputValue}
onSearch={range => {
onSearch(range);
}}
/>
</div>
</form>
</Group>
</div>
<Tabs
Expand Down
11 changes: 9 additions & 2 deletions packages/app/src/ServiceDashboardPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -199,15 +199,22 @@ export default function ServiceDashboardPage() {
setSearchQuery={setSearchQuery}
/>
</div>
<div className="d-flex" style={{ width: 350, height: 36 }}>
<form
className="d-flex"
style={{ width: 350, height: 36 }}
onSubmit={e => {
e.preventDefault();
onSearch(displayedTimeInputValue);
}}
>
<SearchTimeRangePicker
inputValue={displayedTimeInputValue}
setInputValue={setDisplayedTimeInputValue}
onSearch={range => {
onSearch(range);
}}
/>
</div>
</form>
</Group>
</div>
<Tabs
Expand Down

0 comments on commit 02c6e04

Please sign in to comment.