1
0
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:
Scott Bishel 2021-11-26 08:51:01 -07:00 committed by GitHub
parent 8630e099f5
commit 2d505ce359
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 12 deletions

View File

@ -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}

View File

@ -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>