@@ -7,12 +7,12 @@ import DefaultSettings from 'sentry/plugins/components/settings';
77type Props = DefaultSettings [ 'props' ] ;
88
99type State = DefaultSettings [ 'state' ] & {
10- showSelfHostedConfiguration ?: boolean ;
10+ showOnPremisesConfiguration ?: boolean ;
1111} ;
1212
1313class Settings extends DefaultSettings < Props , State > {
1414 REQUIRED_FIELDS = [ 'account_email' , 'api_token' , 'website_id' ] ;
15- SELF_HOSTED_FIELDS = [ 'api_url' , 'player_url' ] ;
15+ ON_PREMISES_FIELDS = [ 'api_url' , 'player_url' ] ;
1616
1717 renderFields ( fields : State [ 'fieldList' ] ) {
1818 return fields ?. map ( f =>
@@ -29,9 +29,9 @@ class Settings extends DefaultSettings<Props, State> {
2929 return fields ?. filter ( field => fieldNames . includes ( field . name ) ) ?? [ ] ;
3030 }
3131
32- toggleSelfHostedConfiguration = ( ) => {
32+ toggleOnPremisesConfiguration = ( ) => {
3333 this . setState ( {
34- showSelfHostedConfiguration : ! this . state . showSelfHostedConfiguration ,
34+ showOnPremisesConfiguration : ! this . state . showOnPremisesConfiguration ,
3535 } ) ;
3636 } ;
3737
@@ -53,9 +53,9 @@ class Settings extends DefaultSettings<Props, State> {
5353 const hasChanges = ! isEqual ( this . state . initialData , this . state . formData ) ;
5454
5555 const requiredFields = this . filterFields ( this . state . fieldList , this . REQUIRED_FIELDS ) ;
56- const selfHostedFields = this . filterFields (
56+ const onPremisesFields = this . filterFields (
5757 this . state . fieldList ,
58- this . SELF_HOSTED_FIELDS
58+ this . ON_PREMISES_FIELDS
5959 ) ;
6060
6161 return (
@@ -68,19 +68,19 @@ class Settings extends DefaultSettings<Props, State> {
6868 </ div >
6969 ) }
7070 { this . renderFields ( requiredFields ) }
71- { selfHostedFields . length > 0 ? (
71+ { onPremisesFields . length > 0 ? (
7272 < div className = "control-group" >
7373 < button
7474 className = "btn btn-default"
7575 type = "button"
76- onClick = { this . toggleSelfHostedConfiguration }
76+ onClick = { this . toggleOnPremisesConfiguration }
7777 >
78- Configure self-hosted
78+ Configure on-premises
7979 </ button >
8080 </ div >
8181 ) : null }
82- { this . state . showSelfHostedConfiguration
83- ? this . renderFields ( selfHostedFields )
82+ { this . state . showOnPremisesConfiguration
83+ ? this . renderFields ( onPremisesFields )
8484 : null }
8585 </ Form >
8686 ) ;
0 commit comments