Skip to content

Commit

Permalink
Make process filter persistent
Browse files Browse the repository at this point in the history
  • Loading branch information
qtc-de committed Jul 24, 2024
1 parent 877edd2 commit 4b6833b
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 5 deletions.
15 changes: 10 additions & 5 deletions frontend/src/components/ProcessTree.vue
Original file line number Diff line number Diff line change
@@ -1,19 +1,24 @@
<script>
import { storeToRefs } from 'pinia'
import { processStore } from '@/stores/processStore.js'
import ProcessTableRow from './ProcessTableRow.vue'
export default
{
props: ['processTree'],
components: {
components:
{
ProcessTableRow,
},
data()
setup()
{
return {
processFilter: null,
}
const store = processStore();
const { processFilter } = storeToRefs(store);
return { processFilter }
},
methods:
Expand Down
2 changes: 2 additions & 0 deletions frontend/src/stores/processStore.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ var refreshOngoing = false;
var selectedPane = null;
var selectedProcess = null;
var selectedInterface = null;
var processFilter = null;

export const processStore = defineStore(
{
Expand All @@ -27,6 +28,7 @@ export const processStore = defineStore(
refreshOngoing,
selectedProcess,
selectedInterface,
processFilter,
}),

actions:
Expand Down

0 comments on commit 4b6833b

Please sign in to comment.