Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
sukhwinder33445 committed Jan 15, 2025
1 parent 4806939 commit f788565
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 826 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 f788565

Please sign in to comment.