fix(editor): Fix node authentication options ordering and hiding options based on node version (#5268)

* 🐛 Fixing auth options order and hiding options that are not valid for current node version
* 🔨 Minor refactoring
This commit is contained in:
Milorad FIlipović
2023-01-27 13:20:08 +01:00
committed by GitHub
parent 92ae9885ce
commit 7d7418140e
2 changed files with 30 additions and 4 deletions

View File

@@ -56,7 +56,7 @@ const activeNodeType = computed<INodeTypeDescription | null>(() => {
});
const authOptions = computed<NodeAuthenticationOption[]>(() => {
return getNodeAuthOptions(activeNodeType.value);
return getNodeAuthOptions(activeNodeType.value, ndvStore.activeNode?.typeVersion);
});
const filteredNodeAuthOptions = computed<NodeAuthenticationOption[]>(() => {