1
0
mirror of https://github.com/mattermost/focalboard.git synced 2024-12-27 13:48:52 +02:00

View menu icons

This commit is contained in:
Chen-I Lim 2020-12-11 12:01:11 -08:00
parent 967933b7a9
commit 135d70e07d
2 changed files with 7 additions and 1 deletions

View File

@ -9,7 +9,9 @@ import {Constants} from '../constants'
import mutator from '../mutator' import mutator from '../mutator'
import {Utils} from '../utils' import {Utils} from '../utils'
import {BoardTree} from '../viewModel/boardTree' import {BoardTree} from '../viewModel/boardTree'
import AddIcon from '../widgets/icons/add'
import BoardIcon from '../widgets/icons/board' import BoardIcon from '../widgets/icons/board'
import DeleteIcon from '../widgets/icons/delete'
import TableIcon from '../widgets/icons/table' import TableIcon from '../widgets/icons/table'
import Menu from '../widgets/menu' import Menu from '../widgets/menu'
@ -114,20 +116,24 @@ export class ViewMenu extends React.PureComponent<Props> {
<Menu.Text <Menu.Text
id='__deleteView' id='__deleteView'
name='Delete View' name='Delete View'
icon={<DeleteIcon/>}
onClick={this.handleDeleteView} onClick={this.handleDeleteView}
/>} />}
<Menu.SubMenu <Menu.SubMenu
id='__addView' id='__addView'
name='Add View' name='Add View'
icon={<AddIcon/>}
> >
<Menu.Text <Menu.Text
id='board' id='board'
name='Board' name='Board'
icon={<BoardIcon/>}
onClick={this.handleAddViewBoard} onClick={this.handleAddViewBoard}
/> />
<Menu.Text <Menu.Text
id='table' id='table'
name='Table' name='Table'
icon={<TableIcon/>}
onClick={this.handleAddViewTable} onClick={this.handleAddViewTable}
/> />
</Menu.SubMenu> </Menu.SubMenu>

View File

@ -1,5 +1,5 @@
.DeleteIcon { .DeleteIcon {
fill: rgba(var(--main-fg), 0.7); fill: rgba(var(--main-fg), 0.5);
stroke: none; stroke: none;
width: 24px; width: 24px;
height: 24px; height: 24px;