mirror of
https://github.com/mattermost/focalboard.git
synced 2025-03-03 15:32:14 +02:00
CalendarView Remove Feature flag (#1865)
* Updating table row css (#1787) * remove calendarView Feature flag * remove unused imports Co-authored-by: Asaad Mahmood <asaadmahmood@users.noreply.github.com>
This commit is contained in:
parent
8630e099f5
commit
2d505ce359
@ -195,7 +195,7 @@ class CenterPanel extends React.Component<Props, State> {
|
||||
addCard={this.addCard}
|
||||
onCardClicked={this.cardClicked}
|
||||
/>}
|
||||
{activeView.fields.viewType === 'calendar' && this.props.clientConfig?.featureFlags.CalendarView &&
|
||||
{activeView.fields.viewType === 'calendar' &&
|
||||
<CalendarFullView
|
||||
board={this.props.board}
|
||||
cards={this.props.cards}
|
||||
|
@ -19,8 +19,6 @@ import DuplicateIcon from '../widgets/icons/duplicate'
|
||||
import GalleryIcon from '../widgets/icons/gallery'
|
||||
import TableIcon from '../widgets/icons/table'
|
||||
import Menu from '../widgets/menu'
|
||||
import {useAppSelector} from '../store/hooks'
|
||||
import {getClientConfig} from '../store/clientConfig'
|
||||
|
||||
type Props = {
|
||||
board: Board,
|
||||
@ -33,7 +31,6 @@ type Props = {
|
||||
const ViewMenu = React.memo((props: Props) => {
|
||||
const history = useHistory()
|
||||
const match = useRouteMatch()
|
||||
const clientConfig = useAppSelector(getClientConfig)
|
||||
|
||||
const showView = useCallback((viewId) => {
|
||||
let newPath = generatePath(match.path, {...match.params, viewId: viewId || ''})
|
||||
@ -291,14 +288,12 @@ const ViewMenu = React.memo((props: Props) => {
|
||||
icon={<GalleryIcon/>}
|
||||
onClick={handleAddViewGallery}
|
||||
/>
|
||||
{clientConfig?.featureFlags.CalendarView &&
|
||||
<Menu.Text
|
||||
id='calendar'
|
||||
name='Calendar'
|
||||
icon={<CalendarIcon/>}
|
||||
onClick={handleAddViewCalendar}
|
||||
/>
|
||||
}
|
||||
<Menu.Text
|
||||
id='calendar'
|
||||
name='Calendar'
|
||||
icon={<CalendarIcon/>}
|
||||
onClick={handleAddViewCalendar}
|
||||
/>
|
||||
</Menu.SubMenu>
|
||||
}
|
||||
</Menu>
|
||||
|
Loading…
x
Reference in New Issue
Block a user