optional steps blueprints - change statuses label
This commit is contained in:
parent
8da0fb0e36
commit
83cf6beea7
36 changed files with 129 additions and 95 deletions
|
|
@ -6,10 +6,15 @@ class ProjectPage extends Page {
|
|||
$steps = array_map(function($child) {
|
||||
return [
|
||||
'text' => $child['content']['title'],
|
||||
'value' => $child['content']['stepname']
|
||||
'value' => $child['content']['stepname'],
|
||||
'index' => $child['content']['stepindex']
|
||||
];
|
||||
}, $this->children()->toArray());
|
||||
|
||||
usort($steps, function ($a, $b) {
|
||||
return $a['index'] <=> $b['index'];
|
||||
});
|
||||
|
||||
return $steps;
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue