DTL panel : open proposal corresponding to dialog working for all steps
This commit is contained in:
parent
c2d00e0edf
commit
345bbfea1b
5 changed files with 42 additions and 11 deletions
|
|
@ -81,7 +81,8 @@ function processDTLProposals($page) {
|
|||
$index = $proposalPage->pdf()->toFiles()->indexOf($proposalFile);
|
||||
$DTLProposal = [
|
||||
"location" => [
|
||||
"step" => "proposal"
|
||||
"step" => "proposal",
|
||||
"source" => (string) $proposalFile->url()
|
||||
],
|
||||
"path" => "/projects/" . $page->slug() . "?dialog=proposal&fileIndex=" . $index,
|
||||
"date" => $proposalFile->modified("d/MM/Y"),
|
||||
|
|
@ -97,7 +98,8 @@ function processDTLProposals($page) {
|
|||
if ($proposalPage && $proposalFile) {
|
||||
$DTLProposal = [
|
||||
"location" => [
|
||||
"step" => "industrialIdeation"
|
||||
"step" => "industrialIdeation",
|
||||
"source" => (string) $proposalFile->url()
|
||||
],
|
||||
"path" => "/projects/" . $page->slug() . "?dialog=industrial-ideation",
|
||||
"date" => $proposalFile->modified("d/MM/Y"),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue