fix: should not be displayed switch button if unknown node

This commit is contained in:
Dr.Lt.Data committed 2024-08-04 16:34:40 +09:00
1 parent ea3413be9b
commit 0b6f7962a4
1 file changed
+1 -5
+1 -5
View File
@@ -636,13 +636,9 @@ export class CustomNodesManager {
installGroups.enabled = installGroups.enabled.filter(it => it !== "disable"); installGroups.enabled = installGroups.enabled.filter(it => it !== "disable");
} }
if (rowItem?.version === "unknown") {
installGroups.enabled = installGroups.enabled.filter(it => it !== "switch");
}
let list = installGroups[action]; let list = installGroups[action];
if(is_selected_button) { if(is_selected_button || rowItem?.version === "unknown") {
list = list.filter(it => it !== "switch"); list = list.filter(it => it !== "switch");
} }
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.