Skip to content

Commit

Permalink
fix(Rozier): Fixed NodeTypeExplorerItem and VueJs drawer-container logic
Browse files Browse the repository at this point in the history
  • Loading branch information
ambroisemaupate committed Jan 15, 2025
1 parent e38b19a commit cc9dd19
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
15 changes: 15 additions & 0 deletions lib/Rozier/src/Explorer/NodeTypeExplorerItem.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,11 @@ public function getAlternativeDisplayable(): ?string
return $this->nodeType->getName();
}

public function getNodeTypeName(): ?string
{
return $this->nodeType->getName();
}

public function getDisplayable(): string
{
return $this->nodeType->getDisplayName();
Expand All @@ -47,4 +52,14 @@ protected function getColor(): ?string
{
return $this->nodeType->getColor();
}



public function toArray(): array
{
return [
...parent::toArray(),
'nodeTypeName' => $this->getNodeTypeName(),
];
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@

updateList () {
let array = this.items.map((item) => {
return item.nodeName
return item.nodeTypeName
})

this.value = array.join(', ')
Expand Down

0 comments on commit cc9dd19

Please sign in to comment.