mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Clean search query on dock tab change
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
This commit is contained in:
parent
cfb6c3c4c0
commit
45b6fafd38
@ -6,6 +6,7 @@ import { dockStore, IDockTab, TabKind } from "./dock.store";
|
|||||||
import { t } from "@lingui/macro";
|
import { t } from "@lingui/macro";
|
||||||
import { _i18n } from "../../i18n";
|
import { _i18n } from "../../i18n";
|
||||||
import { isDevelopment } from "../../../common/vars";
|
import { isDevelopment } from "../../../common/vars";
|
||||||
|
import { searchStore } from "./search.store";
|
||||||
|
|
||||||
export interface IPodLogsData {
|
export interface IPodLogsData {
|
||||||
pod: Pod;
|
pod: Pod;
|
||||||
@ -49,6 +50,11 @@ export class PodLogsStore extends DockTabStore<IPodLogsData> {
|
|||||||
reaction(() => this.logs.get(dockStore.selectedTabId), () => {
|
reaction(() => this.logs.get(dockStore.selectedTabId), () => {
|
||||||
this.setNewLogSince(dockStore.selectedTabId);
|
this.setNewLogSince(dockStore.selectedTabId);
|
||||||
})
|
})
|
||||||
|
|
||||||
|
reaction(() => dockStore.selectedTabId, () => {
|
||||||
|
// Clear search query on tab change
|
||||||
|
searchStore.reset();
|
||||||
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user