Skip to content

Commit c41b17b

Browse files
committed
Drop Pro multiselect options for now
Will be brought back once the rest is filled out, but this is enough to ship
1 parent 0e1b149 commit c41b17b

1 file changed

Lines changed: 0 additions & 45 deletions

File tree

src/components/view/multi-selection-summary-pane.tsx

Lines changed: 0 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ import { AccountStore } from '../../model/account/account-store';
88

99
import { Icon } from '../../icons';
1010
import { Button } from '../common/inputs';
11-
import { GetProOverlay } from '../account/pro-placeholders';
1211

1312
import { getEventPreviewContent, getEventMarkerColor, isOpaqueConnection } from './event-rows/event-row';
1413

@@ -134,21 +133,6 @@ const PinIcon = styled(Icon).attrs({
134133
`}
135134
`;
136135

137-
const ProDivider = styled.hr`
138-
width: 100%;
139-
margin: 36px 0;
140-
border: none;
141-
border: solid 1px ${p => p.theme.mainColor};
142-
`;
143-
144-
const ProActionsContainer = styled.div`
145-
display: flex;
146-
flex-direction: column;
147-
align-items: stretch;
148-
gap: 10px;
149-
width: 100%;
150-
`;
151-
152136
const PREVIEW_COUNT = 10;
153137

154138
export const MultiSelectionSummaryPane = inject('accountStore')(observer((props: {
@@ -160,11 +144,6 @@ export const MultiSelectionSummaryPane = inject('accountStore')(observer((props:
160144
}) => {
161145
const { selectedEvents } = props;
162146
const count = selectedEvents.length;
163-
const isPaidUser = props.accountStore!.user.isPaidUser();
164-
165-
const httpCount = selectedEvents.filter(e =>
166-
e.isHttp() && !e.isWebSocket()
167-
).length;
168147

169148
const allHttp = count > 0 && selectedEvents.every(e => e.isHttp());
170149
const allPinned = selectedEvents.every(e => e.pinned);
@@ -174,15 +153,6 @@ export const MultiSelectionSummaryPane = inject('accountStore')(observer((props:
174153
// Reverse so the most recent is the front card (index 0).
175154
const previewEvents = selectedEvents.slice(-PREVIEW_COUNT).reverse();
176155

177-
const ruleButton = <ActionButton
178-
title={isPaidUser ? `(${Ctrl}+M)` : 'Requires HTTP Toolkit Pro'}
179-
disabled={!isPaidUser || httpCount === 0}
180-
onClick={props.onBuildRule}
181-
>
182-
<Icon icon={['fas', 'wrench']} fixedWidth />
183-
Create {httpCount} Matching Rule{httpCount !== 1 ? 's' : ''}
184-
</ActionButton>;
185-
186156
return <SummaryContainer>
187157
<PreviewStack>
188158
{previewEvents.map((event, index) => {
@@ -215,21 +185,6 @@ export const MultiSelectionSummaryPane = inject('accountStore')(observer((props:
215185
<Icon icon={['far', 'trash-alt']} fixedWidth />
216186
Delete {count} {label}{count !== 1 ? 's' : ''}
217187
</ActionButton>
218-
219-
{ isPaidUser
220-
? ruleButton
221-
: <>
222-
<ProDivider />
223-
<GetProOverlay
224-
getPro={props.accountStore!.getPro}
225-
source='multi-selection-pane'
226-
>
227-
<ProActionsContainer>
228-
{ruleButton}
229-
</ProActionsContainer>
230-
</GetProOverlay>
231-
</>
232-
}
233188
</ActionsContainer>
234189
</SummaryContainer>;
235190
}));

0 commit comments

Comments
 (0)