diff options
author | Kristóf Marussy <kristof@marussy.com> | 2022-08-27 13:02:22 +0200 |
---|---|---|
committer | Kristóf Marussy <kristof@marussy.com> | 2022-08-27 14:50:27 +0200 |
commit | 072621cee0f858236163ce11d42eca5adb84d205 (patch) | |
tree | 701686d051cb3a8a75be9075d404508be093a2a2 /subprojects/frontend/src/editor/SearchPanelStore.ts | |
parent | refactor(frontend): custom mutex implementation (diff) | |
download | refinery-072621cee0f858236163ce11d42eca5adb84d205.tar.gz refinery-072621cee0f858236163ce11d42eca5adb84d205.tar.zst refinery-072621cee0f858236163ce11d42eca5adb84d205.zip |
refactor(frontend): add eslint-plugin-mobx
Diffstat (limited to 'subprojects/frontend/src/editor/SearchPanelStore.ts')
-rw-r--r-- | subprojects/frontend/src/editor/SearchPanelStore.ts | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/subprojects/frontend/src/editor/SearchPanelStore.ts b/subprojects/frontend/src/editor/SearchPanelStore.ts index 8dd02ae6..65d595a8 100644 --- a/subprojects/frontend/src/editor/SearchPanelStore.ts +++ b/subprojects/frontend/src/editor/SearchPanelStore.ts | |||
@@ -21,7 +21,7 @@ export default class SearchPanelStore extends PanelStore { | |||
21 | // Use a custom class name to avoid specificity issues with | 21 | // Use a custom class name to avoid specificity issues with |
22 | // CodeMirror `.cm-search.cm-panel` CSS styles. | 22 | // CodeMirror `.cm-search.cm-panel` CSS styles. |
23 | super('refinery-cm-search', openSearchPanel, closeSearchPanel, store); | 23 | super('refinery-cm-search', openSearchPanel, closeSearchPanel, store); |
24 | makeObservable(this, { | 24 | makeObservable<SearchPanelStore, 'selectSearchField'>(this, { |
25 | searchField: observable.ref, | 25 | searchField: observable.ref, |
26 | query: computed, | 26 | query: computed, |
27 | invalidRegexp: computed, | 27 | invalidRegexp: computed, |
@@ -32,6 +32,7 @@ export default class SearchPanelStore extends PanelStore { | |||
32 | findPrevious: action, | 32 | findPrevious: action, |
33 | replaceNext: action, | 33 | replaceNext: action, |
34 | replaceAll: action, | 34 | replaceAll: action, |
35 | selectSearchField: false, | ||
35 | }); | 36 | }); |
36 | } | 37 | } |
37 | 38 | ||