Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
sukhwinder33445 committed Jul 16, 2024
1 parent 6029cc1 commit 855dec0
Show file tree
Hide file tree
Showing 2 changed files with 118 additions and 714 deletions.
3 changes: 3 additions & 0 deletions library/Icingadb/Common/DetailActions.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,9 @@ public function getDetailActionsDisabled(): bool
public function initializeDetailActions(): self
{
$this->getAttributes()
->registerAttributeCallback('data-interactable-action-list', function () {
return $this->getDetailActionsDisabled() ? null : true;
})
->registerAttributeCallback('class', function () {
return $this->getDetailActionsDisabled() ? null : 'action-list';
})
Expand Down
Loading

0 comments on commit 855dec0

Please sign in to comment.