From b5a523f3c0f16a3d7f312f85ecd13f0600caad7c Mon Sep 17 00:00:00 2001 From: noO0oOo0ob <38344038+noO0oOo0ob@users.noreply.github.com> Date: Mon, 4 Mar 2024 13:02:03 +0800 Subject: [PATCH] add keybroad control flow detail in inspector (#830) * add keybroad control flow detail in inspector * fix index bug --- frontend/package.json | 1 + frontend/src/store/inspector.js | 1 + frontend/src/views/inspector/ButtonBar.vue | 1 + frontend/src/views/inspector/FlowList.vue | 73 +++++++++++++++++++--- lyrebird/version.py | 2 +- 5 files changed, 69 insertions(+), 9 deletions(-) diff --git a/frontend/package.json b/frontend/package.json index 26f6dd67c..108683bca 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -9,6 +9,7 @@ "dependencies": { "axios": "^0.27.2", "iview": "^3.4.2", + "lodash": "^4.17.21", "monaco-editor": "^0.30.1", "socket.io-client": "^3.1.3", "vue": "^2.7.10", diff --git a/frontend/src/store/inspector.js b/frontend/src/store/inspector.js index 1a95f27ae..80c07d5bd 100644 --- a/frontend/src/store/inspector.js +++ b/frontend/src/store/inspector.js @@ -161,6 +161,7 @@ export default { .then(response => { commit('clearSelectedId') commit('clearSelectedFlows') + commit('clearFocusedFlowDetail') }).catch(error => { bus.$emit('msg.error', 'Clear flow error: ' + error.data.message) return diff --git a/frontend/src/views/inspector/ButtonBar.vue b/frontend/src/views/inspector/ButtonBar.vue index d14b64cdf..60fa67035 100644 --- a/frontend/src/views/inspector/ButtonBar.vue +++ b/frontend/src/views/inspector/ButtonBar.vue @@ -259,6 +259,7 @@ export default { this.$refs.treeDrawer.toggal() }, changeFlowFilter () { + this.$store.commit('clearFocusedFlowDetail') this.$store.dispatch('loadFlowList') }, clearAllFlow () { diff --git a/frontend/src/views/inspector/FlowList.vue b/frontend/src/views/inspector/FlowList.vue index c71ad2c37..b44f54700 100644 --- a/frontend/src/views/inspector/FlowList.vue +++ b/frontend/src/views/inspector/FlowList.vue @@ -185,6 +185,7 @@