-
-
Sessions {listCount}
+
+
+
props.setActiveTab({ type: 'all' })}
+ >
+ Sessions {listCount}
+
+
props.setActiveTab({ type: 'bookmark' })}
+ >
+ {`${isEnterprise ? 'Vault' : 'Bookmarks'}`}
+
-
);
@@ -43,6 +67,8 @@ export default connect(
(state: any) => ({
filter: state.getIn(['search', 'instance']),
listCount: numberWithCommas(state.getIn(['sessions', 'total'])),
+ isBookmark: state.getIn(['search', 'activeTab', 'type']) === 'bookmark',
+ isEnterprise: state.getIn(['user', 'account', 'edition']) === 'ee',
}),
- { applyFilter }
+ { applyFilter, setActiveTab }
)(SessionHeader);
diff --git a/frontend/app/components/shared/SessionListContainer/components/SessionSettingButton/SessionSettingButton.tsx b/frontend/app/components/shared/SessionListContainer/components/SessionSettingButton/SessionSettingButton.tsx
new file mode 100644
index 000000000..897a59754
--- /dev/null
+++ b/frontend/app/components/shared/SessionListContainer/components/SessionSettingButton/SessionSettingButton.tsx
@@ -0,0 +1,20 @@
+import { useModal } from 'App/components/Modal';
+import React from 'react';
+import SessionSettings from 'Shared/SessionSettings';
+import { Button } from 'UI';
+
+function SessionSettingButton(props: any) {
+ const { showModal } = useModal();
+
+ const handleClick = () => {
+ showModal(
, { right: true });
+ };
+
+ return (
+
+
+
+ );
+}
+
+export default SessionSettingButton;
diff --git a/frontend/app/components/shared/SessionListContainer/components/SessionSettingButton/index.ts b/frontend/app/components/shared/SessionListContainer/components/SessionSettingButton/index.ts
new file mode 100644
index 000000000..dffed3cc0
--- /dev/null
+++ b/frontend/app/components/shared/SessionListContainer/components/SessionSettingButton/index.ts
@@ -0,0 +1 @@
+export { default } from './SessionSettingButton';
\ No newline at end of file
diff --git a/frontend/app/types/session/issue.js b/frontend/app/types/session/issue.js
index 673467fd2..d2afff190 100644
--- a/frontend/app/types/session/issue.js
+++ b/frontend/app/types/session/issue.js
@@ -8,13 +8,13 @@ export const issues_types = List([
{ 'type': 'click_rage', 'visible': true, 'order': 2, 'name': 'Click Rage', 'icon': 'funnel/emoji-angry' },
{ 'type': 'crash', 'visible': true, 'order': 3, 'name': 'Crashes', 'icon': 'funnel/file-earmark-break' },
{ 'type': 'memory', 'visible': true, 'order': 4, 'name': 'High Memory', 'icon': 'funnel/sd-card' },
- { 'type': 'vault', 'visible': true, 'order': 5, 'name': 'Vault', 'icon': 'safe' },
- { 'type': 'bookmark', 'visible': true, 'order': 5, 'name': 'Bookmarks', 'icon': 'safe' },
- { 'type': 'bad_request', 'visible': true, 'order': 1, 'name': 'Bad Requests', 'icon': 'funnel/file-medical-alt' },
- { 'type': 'missing_resource', 'visible': true, 'order': 2, 'name': 'Missing Images', 'icon': 'funnel/image' },
- { 'type': 'dead_click', 'visible': true, 'order': 4, 'name': 'Dead Clicks', 'icon': 'funnel/dizzy' },
- { 'type': 'cpu', 'visible': true, 'order': 6, 'name': 'High CPU', 'icon': 'funnel/cpu' },
- { 'type': 'custom', 'visible': false, 'order': 8, 'name': 'Custom', 'icon': 'funnel/exclamation-circle' }
+ // { 'type': 'vault', 'visible': true, 'order': 5, 'name': 'Vault', 'icon': 'safe' },
+ // { 'type': 'bookmark', 'visible': true, 'order': 5, 'name': 'Bookmarks', 'icon': 'safe' },
+ // { 'type': 'bad_request', 'visible': true, 'order': 1, 'name': 'Bad Requests', 'icon': 'funnel/file-medical-alt' },
+ // { 'type': 'missing_resource', 'visible': true, 'order': 2, 'name': 'Missing Images', 'icon': 'funnel/image' },
+ // { 'type': 'dead_click', 'visible': true, 'order': 4, 'name': 'Dead Clicks', 'icon': 'funnel/dizzy' },
+ // { 'type': 'cpu', 'visible': true, 'order': 6, 'name': 'High CPU', 'icon': 'funnel/cpu' },
+ // { 'type': 'custom', 'visible': false, 'order': 8, 'name': 'Custom', 'icon': 'funnel/exclamation-circle' }
]).map(Watchdog)
export const issues_types_map = {}