mirror of
https://github.com/beekeeper-studio/beekeeper-studio.git
synced 2026-03-13 10:12:54 +08:00
Merge pull request #2944 from therealrinku/fix/clear-table-search
fix: clear table search query on db change
This commit is contained in:
@@ -193,6 +193,7 @@ import { matches } from '@/common/transport/TransportPinnedEntity'
|
||||
},
|
||||
computed: {
|
||||
...mapGetters(['dialectData', 'dialect']),
|
||||
...mapState({currentDatabase: 'database'}),
|
||||
createDisabled() {
|
||||
return !!this.dialectData.disabledFeatures.createTable
|
||||
},
|
||||
@@ -271,6 +272,9 @@ import { matches } from '@/common/transport/TransportPinnedEntity'
|
||||
}),
|
||||
},
|
||||
watch: {
|
||||
currentDatabase(){
|
||||
this.filterQuery = null
|
||||
},
|
||||
loadedWithPins (loaded, oldloaded) {
|
||||
if (loaded && (!oldloaded)) {
|
||||
this.$nextTick(() => {
|
||||
|
||||
Reference in New Issue
Block a user