X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=SL%2FPresenter%2FRequirementSpecTextBlock.pm;h=c0b983a7c41a2b73d68ab2342f0014dd19d5ae6d;hb=1af50c02794dc8b5e495de1e5b8c739bb94f7dc5;hp=dc045ff312755cb7b44cf0aa3446643c456077f5;hpb=e2f753a4cb6c299fc6440ae94e20891a5a0c77cb;p=kivitendo-erp.git diff --git a/SL/Presenter/RequirementSpecTextBlock.pm b/SL/Presenter/RequirementSpecTextBlock.pm index dc045ff31..c0b983a7c 100644 --- a/SL/Presenter/RequirementSpecTextBlock.pm +++ b/SL/Presenter/RequirementSpecTextBlock.pm @@ -14,10 +14,13 @@ use SL::JSON; sub requirement_spec_text_block_jstree_data { my ($self, $text_block, %params) = @_; + my $class = 'text-block-context-menu'; + $class .= ' flagged' if $text_block->is_flagged; + return { data => $text_block->title || '', metadata => { id => $text_block->id, type => 'text-block' }, - attr => { id => "tb-" . $text_block->id, href => $params{href} || '#', class => 'text-block-context-menu' }, + attr => { id => "tb-" . $text_block->id, href => $params{href} || '#', class => $class }, }; }