Check current group by property in menu
This commit is contained in:
parent
ec93778293
commit
e5f2ffa600
1 changed files with 2 additions and 0 deletions
|
@ -16,6 +16,7 @@ import mutator from '../mutator'
|
|||
import {Utils} from '../utils'
|
||||
import Menu from '../widgets/menu'
|
||||
import MenuWrapper from '../widgets/menuWrapper'
|
||||
import CheckIcon from '../widgets/icons/check'
|
||||
import DropdownIcon from '../widgets/icons/dropdown'
|
||||
import OptionsIcon from '../widgets/icons/options'
|
||||
import SortUpIcon from '../widgets/icons/sortUp'
|
||||
|
@ -199,6 +200,7 @@ class ViewHeader extends React.Component<Props, State> {
|
|||
key={option.id}
|
||||
id={option.id}
|
||||
name={option.name}
|
||||
icon={boardTree.activeView.groupById === option.id ? <CheckIcon /> : undefined}
|
||||
onClick={(id) => {
|
||||
if (boardTree.activeView.groupById === id) {
|
||||
return
|
||||
|
|
Loading…
Reference in a new issue