perf: change "load all keys" to "load all left keys"
This commit is contained in:
parent
5bbd87cc31
commit
c4e4ed7e79
|
@ -770,7 +770,8 @@ func (c *connectionService) LoadAllKeys(connName string, db int, match, keyType
|
|||
}
|
||||
|
||||
client, ctx := item.client, item.ctx
|
||||
keys, _, err := c.scanKeys(ctx, client, match, keyType, 0, 0)
|
||||
cursor := item.cursor[db]
|
||||
keys, _, err := c.scanKeys(ctx, client, match, keyType, cursor, 0)
|
||||
if err != nil {
|
||||
resp.Msg = err.Error()
|
||||
return
|
||||
|
|
|
@ -87,7 +87,7 @@
|
|||
"remove_key": "Remove Key",
|
||||
"new_key": "Add Key",
|
||||
"load_more": "Load More Keys",
|
||||
"load_all": "Load All Keys",
|
||||
"load_all": "Load All Left Keys",
|
||||
"more_action": "More Action",
|
||||
"nonexist_tab_content": "Selected key does not exist. Please retry",
|
||||
"empty_server_content": "Select and open a connection from the left",
|
||||
|
|
|
@ -87,7 +87,7 @@
|
|||
"remove_key": "删除键",
|
||||
"new_key": "添加新键",
|
||||
"load_more": "加载更多键",
|
||||
"load_all": "加载所有键",
|
||||
"load_all": "加载剩余所有键",
|
||||
"more_action": "更多操作",
|
||||
"nonexist_tab_content": "所选键不存在,请尝试刷新重试",
|
||||
"empty_server_content": "可以从左边选择并打开连接",
|
||||
|
|
|
@ -772,8 +772,6 @@ const useConnectionStore = defineStore('connections', {
|
|||
async loadAllKeys(connName, db) {
|
||||
const { match, type: keyType } = this.getKeyFilter(connName, db)
|
||||
const { keys } = await this._loadKeys(connName, db, match, keyType, true)
|
||||
// remove current keys below prefix
|
||||
this._deleteKeyNode(connName, db, '', true)
|
||||
this._addKeyNodes(connName, db, keys)
|
||||
this._tidyNode(connName, db, '')
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue