Fix project isDTLEnabled
This commit is contained in:
parent
9a4de64663
commit
a963f8aff6
2 changed files with 2 additions and 2 deletions
|
|
@ -9,7 +9,7 @@ $project = [
|
||||||
? $page->client()->toPage()->logo()->toFile()->url()
|
? $page->client()->toPage()->logo()->toFile()->url()
|
||||||
: null,
|
: null,
|
||||||
"steps" => $page->getSteps(),
|
"steps" => $page->getSteps(),
|
||||||
"designToLight" => $page->isDTLEnabled() ? processDTLProposals($page) : null,
|
"designToLight" => $page->isDTLEnabled() == "true" ? processDTLProposals($page) : null,
|
||||||
];
|
];
|
||||||
|
|
||||||
$pageData = array_merge($genericData, $project);
|
$pageData = array_merge($genericData, $project);
|
||||||
|
|
|
||||||
|
|
@ -12,7 +12,7 @@ function getProjectData($project) {
|
||||||
"notifications" => Yaml::decode($project->notifications()->value),
|
"notifications" => Yaml::decode($project->notifications()->value),
|
||||||
"uuid" => (string) $project->uuid(),
|
"uuid" => (string) $project->uuid(),
|
||||||
"slug" => (string) $project->slug(),
|
"slug" => (string) $project->slug(),
|
||||||
"isDTLEnabled" => (bool) $project->isDTLEnabled()->value() == "true"
|
"isDTLEnabled" => $project->isDTLEnabled()->value() == "true" ? true : false
|
||||||
];
|
];
|
||||||
|
|
||||||
if ($project->isDTLEnabled()) {
|
if ($project->isDTLEnabled()) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue