@@ -6,19 +6,16 @@ import Reflux from 'reflux';
6
6
import createReactClass from 'create-react-class' ;
7
7
import styled from 'react-emotion' ;
8
8
9
- import { openCreateIncidentModal } from 'app/actionCreators/modal' ;
10
9
import { t , tct , tn } from 'app/locale' ;
11
10
import space from 'app/styles/space' ;
12
11
import theme from 'app/utils/theme' ;
13
12
import ActionLink from 'app/components/actions/actionLink' ;
14
13
import Checkbox from 'app/components/checkbox' ;
15
14
import DropdownLink from 'app/components/dropdownLink' ;
16
15
import ExternalLink from 'app/components/links/externalLink' ;
17
- import Feature from 'app/components/acl/feature' ;
18
16
import GroupStore from 'app/stores/groupStore' ;
19
17
import IgnoreActions from 'app/components/actions/ignore' ;
20
18
import IndicatorStore from 'app/stores/indicatorStore' ;
21
- import InlineSvg from 'app/components/inlineSvg' ;
22
19
import MenuItem from 'app/components/menuItem' ;
23
20
import Projects from 'app/utils/projects' ;
24
21
import ResolveActions from 'app/components/actions/resolve' ;
@@ -156,7 +153,6 @@ const IssueListActions = createReactClass({
156
153
statsPeriod : PropTypes . string . isRequired ,
157
154
query : PropTypes . string . isRequired ,
158
155
queryCount : PropTypes . number ,
159
- organization : SentryTypes . Organization ,
160
156
} ,
161
157
162
158
mixins : [ Reflux . listenTo ( SelectedGroupStore , 'handleSelectedGroupChange' ) ] ,
@@ -315,12 +311,6 @@ const IssueListActions = createReactClass({
315
311
} ) ;
316
312
} ,
317
313
318
- handleCreateIncident ( ) {
319
- const { organization} = this . props ;
320
- const issues = this . state . selectedIds ;
321
- openCreateIncidentModal ( { organization, issues : Array . from ( issues ) } ) ;
322
- } ,
323
-
324
314
handleSelectAll ( ) {
325
315
SelectedGroupStore . toggleSelectAll ( ) ;
326
316
} ,
@@ -404,7 +394,6 @@ const IssueListActions = createReactClass({
404
394
// merges require a single project to be active in an org context
405
395
// selectedProjectSlug is null when 0 or >1 projects are selected.
406
396
const mergeDisabled = ! ( multiSelected && selectedProjectSlug ) ;
407
- const createNewIncidentDisabled = ! anySelected || allInQuerySelected ;
408
397
409
398
return (
410
399
< Sticky >
@@ -457,25 +446,6 @@ const IssueListActions = createReactClass({
457
446
{ t ( 'Merge' ) }
458
447
</ ActionLink >
459
448
</ div >
460
- < Feature features = { [ 'incidents' ] } >
461
- < div className = "btn-group hidden-xs" >
462
- < ActionLink
463
- className = "btn btn-default btn-sm hidden-md hidden-sm hidden-xs"
464
- title = { t ( 'Create new incident' ) }
465
- disabled = { createNewIncidentDisabled }
466
- onAction = { this . handleCreateIncident }
467
- >
468
- < IncidentLabel >
469
- < IncidentIcon
470
- data-test-id = "create-incident"
471
- size = "16"
472
- src = "icon-siren-add"
473
- />
474
- < CreateIncidentText > { t ( 'Create Incident' ) } </ CreateIncidentText >
475
- </ IncidentLabel >
476
- </ ActionLink >
477
- </ div >
478
- </ Feature >
479
449
< div className = "btn-group" >
480
450
< DropdownLink
481
451
key = "actions"
@@ -498,17 +468,6 @@ const IssueListActions = createReactClass({
498
468
</ ActionLink >
499
469
</ MenuItem >
500
470
< MenuItem divider className = "hidden-lg hidden-xl" />
501
- < MenuItem noAnchor >
502
- < ActionLink
503
- className = "hidden-lg hidden-xl"
504
- disabled = { createNewIncidentDisabled }
505
- onAction = { this . handleCreateIncident }
506
- title = { t ( 'Create new incident' ) }
507
- >
508
- { t ( 'Create Incident' ) }
509
- </ ActionLink >
510
- </ MenuItem >
511
- < MenuItem divider className = "hidden-lg hidden-xl" />
512
471
< MenuItem noAnchor >
513
472
< ActionLink
514
473
className = "action-bookmark"
@@ -749,18 +708,6 @@ const AssigneesLabel = styled('div')`
749
708
margin-right: ${ space ( 2 ) } ;
750
709
` ;
751
710
752
- const IncidentLabel = styled ( 'div' ) `
753
- display: flex;
754
- align-items: center;
755
- ` ;
756
- const IncidentIcon = styled ( InlineSvg ) `
757
- position: relative;
758
- top: -1px;
759
- ` ;
760
- const CreateIncidentText = styled ( 'span' ) `
761
- margin-left: 5px; /* consistent with other items in bar */
762
- ` ;
763
-
764
711
export { IssueListActions } ;
765
712
766
713
export default withApi ( IssueListActions ) ;
0 commit comments