@@ -5,8 +5,8 @@ import { MSKTab, MSKTabs } from '../../shared/components/MSKTabs/MSKTabs';
5
5
import {
6
6
action ,
7
7
computed ,
8
- observable ,
9
8
makeObservable ,
9
+ observable ,
10
10
runInAction ,
11
11
} from 'mobx' ;
12
12
import {
@@ -24,6 +24,7 @@ import { ClinicalDataTab } from './tabs/ClinicalDataTab';
24
24
import {
25
25
DefaultTooltip ,
26
26
getBrowserWindow ,
27
+ onMobxPromise ,
27
28
remoteData ,
28
29
} from 'cbioportal-frontend-commons' ;
29
30
import { PageLayout } from '../../shared/components/PageLayout/PageLayout' ;
@@ -38,7 +39,6 @@ import { Else, If, Then } from 'react-if';
38
39
import CustomCaseSelection from './addChartButton/customCaseSelection/CustomCaseSelection' ;
39
40
import { AppStore } from '../../AppStore' ;
40
41
import ActionButtons from './studyPageHeader/ActionButtons' ;
41
- import { onMobxPromise } from 'cbioportal-frontend-commons' ;
42
42
import {
43
43
GACustomFieldsEnum ,
44
44
serializeEvent ,
@@ -49,10 +49,10 @@ import classNames from 'classnames';
49
49
import { getServerConfig , ServerConfigHelpers } from '../../config/config' ;
50
50
import {
51
51
AlterationMenuHeader ,
52
- getButtonNameWithDownPointer ,
53
52
ChartMetaDataTypeEnum ,
53
+ getButtonNameWithDownPointer ,
54
54
} from './StudyViewUtils' ;
55
- import { Alert , Modal } from 'react-bootstrap' ;
55
+ import { Modal } from 'react-bootstrap' ;
56
56
import 'react-grid-layout/css/styles.css' ;
57
57
import 'react-resizable/css/styles.css' ;
58
58
import styles from './styles.module.scss' ;
@@ -74,10 +74,9 @@ import ErrorScreen from 'shared/components/errorScreen/ErrorScreen';
74
74
import { CustomChartData } from 'shared/api/session-service/sessionServiceModels' ;
75
75
import { HelpWidget } from 'shared/components/HelpWidget/HelpWidget' ;
76
76
import { buildCBioPortalPageUrl } from 'shared/api/urls' ;
77
- import Tooltip from 'rc-tooltip' ;
78
77
import { StudyViewContext } from 'pages/studyView/StudyViewContext' ;
79
- import StudyViewPageGearMenu from 'pages/studyView/menu/StudyViewPageGearMenu ' ;
80
- import { QueuedFilterPillStore } from 'shared/components/PillTag/PillTag' ;
78
+ import StudyViewPageSettingsMenu from 'pages/studyView/menu/StudyViewPageSettingsMenu ' ;
79
+ import { PillStore } from 'shared/components/PillTag/PillTag' ;
81
80
82
81
export interface IStudyViewPageProps {
83
82
routing : any ;
@@ -674,26 +673,11 @@ export default class StudyViewPage extends React.Component<
674
673
'btn btn-sm btn-primary' ,
675
674
styles . actionButtons
676
675
) }
677
- onClick = { ( ) => {
678
- runInAction ( ( ) => {
679
- let hesitantPillStore = getBrowserWindow ( )
680
- . hesitantPillStore as QueuedFilterPillStore ;
681
- _ . forIn (
682
- hesitantPillStore ,
683
- value => {
684
- const onDeleteCallback =
685
- value . onDeleteCallback ;
686
- if (
687
- onDeleteCallback
688
- ) {
689
- onDeleteCallback ( ) ;
690
- }
691
- }
692
- ) ;
693
- getBrowserWindow ( ) . hesitantPillStore = { } ;
694
- this . store . filters = this . store . filtersProx ;
695
- } ) ;
696
- } }
676
+ onClick = { ( ) =>
677
+ runInAction ( ( ) =>
678
+ this . submitHesitantFilters ( )
679
+ )
680
+ }
697
681
>
698
682
Submit ►
699
683
</ button >
@@ -1009,7 +993,7 @@ export default class StudyViewPage extends React.Component<
1009
993
{ ServerConfigHelpers . sessionServiceIsEnabled ( ) &&
1010
994
this . groupsButton }
1011
995
</ div >
1012
- < StudyViewPageGearMenu
996
+ < StudyViewPageSettingsMenu
1013
997
store = { this . store }
1014
998
/>
1015
999
</ div >
@@ -1021,6 +1005,10 @@ export default class StudyViewPage extends React.Component<
1021
1005
) ;
1022
1006
}
1023
1007
1008
+ submitHesitantFilters ( ) {
1009
+ this . store . filterSubmitTime = performance . now ( ) ;
1010
+ }
1011
+
1024
1012
private readonly body = MakeMobxView ( {
1025
1013
await : ( ) => [
1026
1014
this . store . unknownQueriedIds ,
0 commit comments