Merge remote-tracking branch 'origin/master' into fix-1898/watch-api-streaming

# Conflicts:
#	src/renderer/components/app.tsx
This commit is contained in:
Roman committed 2021-01-27 18:23:20 +02:00
commit 78260278c0
27 files changed
+1401 -141

No files matched your search

+8 -1
View File
@@ -1,4 +1,5 @@
import { action, computed, observable } from "mobx";
import { action, computed, observable,reaction } from "mobx";
import { dockStore } from "../renderer/components/dock/dock.store";
import { autobind } from "../renderer/utils";
export class SearchStore {
@@ -6,6 +7,12 @@ export class SearchStore {
@observable occurrences: number[] = []; // Array with line numbers, eg [0, 0, 10, 21, 21, 40...]
@observable activeOverlayIndex = -1; // Index withing the occurences array. Showing where is activeOverlay currently located
constructor() {
reaction(() => dockStore.selectedTabId, () => {
searchStore.reset();
});
}
/**
* Sets default activeOverlayIndex
* @param text An array of any textual data (logs, for example)