File tree Expand file tree Collapse file tree 2 files changed +6
-5
lines changed
static/app/components/prevent/integratedOrgSelector Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -21,10 +21,11 @@ import {IconIntegratedOrg} from './iconIntegratedOrg';
21
21
function AddIntegratedOrgButton ( ) {
22
22
return (
23
23
< LinkButton
24
- href = "https://github.com/apps/sentry-io "
24
+ href = "https://github.com/apps/sentry/installations/select_target "
25
25
size = "sm"
26
26
icon = { < IconAdd size = "sm" /> }
27
27
priority = "default"
28
+ external
28
29
>
29
30
{ t ( 'Integrated Organization' ) }
30
31
</ LinkButton >
@@ -107,8 +108,7 @@ export function IntegratedOrgSelector() {
107
108
< IconIntegratedOrg />
108
109
</ IconContainer >
109
110
< TriggerLabel >
110
- { integratedOrgIdToName ( integratedOrgId , integrations ) ||
111
- t ( 'Select integrated organization' ) }
111
+ { integratedOrgIdToName ( integratedOrgId , integrations ) }
112
112
</ TriggerLabel >
113
113
</ Flex >
114
114
</ TriggerLabelWrap >
Original file line number Diff line number Diff line change
1
+ import { t } from 'sentry/locale' ;
1
2
import type { Integration } from 'sentry/types/integrations' ;
2
3
3
4
export const integratedOrgIdToName = ( id ?: string , integrations ?: Integration [ ] ) => {
4
5
if ( ! id || ! integrations ) {
5
- return 'No Integration' ;
6
+ return t ( 'Select Integrated Org' ) ;
6
7
}
7
8
const result = integrations . find ( item => item . id === id ) ;
8
- return result ? result . name : 'Select Integration' ;
9
+ return result ? .name || t ( 'Select Integrated Org' ) ;
9
10
} ;
You can’t perform that action at this time.
0 commit comments