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…
Reference in New Issue