mirror of
https://github.com/tiny-craft/tiny-rdm.git
synced 2025-04-19 02:38:05 +08:00
perf: change the function buttons for database nodes to be persistent
This commit is contained in:
parent
e2a371ed14
commit
77541ed371
@ -529,7 +529,7 @@ const getValueMenu = () => {
|
|||||||
|
|
||||||
// render menu function icon
|
// render menu function icon
|
||||||
const renderSuffix = ({ option }) => {
|
const renderSuffix = ({ option }) => {
|
||||||
if (includes(selectedKeys.value, option.key)) {
|
if ((option.type === ConnectionType.RedisDB && option.opened) || includes(selectedKeys.value, option.key)) {
|
||||||
switch (option.type) {
|
switch (option.type) {
|
||||||
case ConnectionType.RedisDB:
|
case ConnectionType.RedisDB:
|
||||||
return renderIconMenu(getDatabaseMenu(option.opened))
|
return renderIconMenu(getDatabaseMenu(option.opened))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user