Selaa lähdekoodia

parent dialog: fix parent name field

Martin Kunz 1 vuosi sitten
vanhempi
commit
45bebd93a0
1 muutettua tiedostoa jossa 2 lisäystä ja 0 poistoa
  1. 2 0
      src/components/TheParent.vue

+ 2 - 0
src/components/TheParent.vue

@@ -21,6 +21,8 @@ function clickNode(clickedNode: UABaseNode) {
 
 
 watch(node, async (newNode, _oldNode) => {
 watch(node, async (newNode, _oldNode) => {
   selectedRefType.value=newNode?.getParentRef()?.referenceType||"";
   selectedRefType.value=newNode?.getParentRef()?.referenceType||"";
+  selectedParent.value=newNode?.getParent()||UABaseNode.nullBaseNode;
+
 })
 })
 
 
 function okPressed() {
 function okPressed() {