From 4708ba6231809ebdd7e81aea9b68d66f2a0afa41 Mon Sep 17 00:00:00 2001 From: Petr Jasek Date: Mon, 17 Jun 2024 12:02:44 +0200 Subject: [PATCH] save --- client/components/Events/EventItem.tsx | 5 ++--- client/components/Events/EventItemWithPlanning.tsx | 1 - client/components/Main/ListGroupItem.tsx | 4 ++-- server/planning/search/eventsplanning_search.py | 3 ++- 4 files changed, 6 insertions(+), 7 deletions(-) diff --git a/client/components/Events/EventItem.tsx b/client/components/Events/EventItem.tsx index ecee6fe96..86aa50fc9 100644 --- a/client/components/Events/EventItem.tsx +++ b/client/components/Events/EventItem.tsx @@ -167,7 +167,6 @@ class EventItemComponent extends React.Component { const hasPlanning = eventUtils.eventHasPlanning(item); const isItemLocked = lockUtils.isItemLocked(item, lockedItems); - const showRelatedPlanningLink = activeFilter === PLANNING_VIEW.COMBINED && hasPlanning; let borderState: 'locked' | 'active' | false = false; if (isItemLocked) { @@ -258,7 +257,7 @@ class EventItemComponent extends React.Component { {secondaryFields.includes('files') && renderFields('files', item)} - {(showRelatedPlanningLink) && ( + {(hasPlanning) && ( @@ -297,4 +296,4 @@ class EventItemComponent extends React.Component { } } -export const EventItem = connect()(EventItemComponent); +export const EventItem = connect()(EventItemComponent); \ No newline at end of file diff --git a/client/components/Events/EventItemWithPlanning.tsx b/client/components/Events/EventItemWithPlanning.tsx index e7b406589..735e883e6 100644 --- a/client/components/Events/EventItemWithPlanning.tsx +++ b/client/components/Events/EventItemWithPlanning.tsx @@ -240,7 +240,6 @@ export class EventItemWithPlanning extends React.Component { expanded={this.state.openPlanningItems} nestedChildren={getPlannings(eventProps.item)} noMarginTop={this.props.listViewType === LIST_VIEW_TYPE.LIST} - refNode={this.props.refNode} /> ); } diff --git a/client/components/Main/ListGroupItem.tsx b/client/components/Main/ListGroupItem.tsx index 7224f1196..97a14762f 100644 --- a/client/components/Main/ListGroupItem.tsx +++ b/client/components/Main/ListGroupItem.tsx @@ -10,7 +10,7 @@ import { import {EventItem, EventItemWithPlanning} from '../Events'; import {PlanningItem} from '../Planning'; -import {ITEM_TYPE, EVENTS, PLANNING, MAIN, CLICK_DELAY} from '../../constants'; +import {ITEM_TYPE, EVENTS, PLANNING, CLICK_DELAY} from '../../constants'; import {getItemType, eventUtils} from '../../utils'; import {planningApi} from '../../superdeskApi'; @@ -244,7 +244,7 @@ export class ListGroupItem extends React.Component { switch (itemType) { case ITEM_TYPE.EVENT: - if (eventUtils.eventHasPlanning(item) && activeFilter === MAIN.FILTERS.COMBINED) { + if (eventUtils.eventHasPlanning(item)) { return (