Skip to content

Commit

Permalink
FEATURE Add timeable node visibility - Rename properties
Browse files Browse the repository at this point in the history
  • Loading branch information
dlubitz committed Jan 3, 2024
1 parent 6807ac6 commit 47194e9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Classes/Fusion/Helper/NodeInfoHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -126,8 +126,8 @@ public function renderNodeWithMinimalPropertiesAndChildrenInformation(
$node->nodeAggregateId
)->isHidden,
'_hiddenInIndex' => $node->getProperty('_hiddenInIndex'),
'_hiddenBeforeDateTime' => $node->getProperty('hiddenBeforeDateTime') instanceof \DateTimeInterface ? $node->getProperty('hiddenBeforeDateTime')->format(\DateTime::W3C) : '',
'_hiddenAfterDateTime' => $node->getProperty('hiddenAfterDateTime') instanceof \DateTimeInterface ? $node->getProperty('hiddenAfterDateTime')->format(\DateTime::W3C) : '',
'enableAfterDateTime' => $node->getProperty('enableAfterDateTime') instanceof \DateTimeInterface ? $node->getProperty('enableAfterDateTime')->format(\DateTime::W3C) : '',
'disableAfterDateTime' => $node->getProperty('disableAfterDateTime') instanceof \DateTimeInterface ? $node->getProperty('disableAfterDateTime')->format(\DateTime::W3C) : '',
];

if ($controllerContext !== null) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -171,8 +171,8 @@ export default class Node extends PureComponent {
const {node} = this.props;

const isHidden = node?.properties?._hidden;
const isHiddenBefore = node?.properties?._hiddenBeforeDateTime;
const isHiddenAfter = node?.properties?._hiddenAfterDateTime;
const isHiddenBefore = node?.properties?.enableAfterDateTime;
const isHiddenAfter = node?.properties?.disableAfterDateTime;

if (isHiddenBefore || isHiddenAfter) {
let isCurrentlyHidden = false;
Expand Down

0 comments on commit 47194e9

Please sign in to comment.