File tree 1 file changed +7
-3
lines changed
src/sentry/static/sentry/app/views
1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ import React from 'react';
2
2
import DocumentTitle from 'react-document-title' ;
3
3
4
4
import { t } from '../locale' ;
5
- import api from '../api ' ;
5
+ import ApiMixin from '../mixins/apiMixin ' ;
6
6
import ConfigStore from '../stores/configStore' ;
7
7
import LoadingIndicator from '../components/loadingIndicator' ;
8
8
import { EmailField , TextField } from '../components/forms' ;
@@ -18,7 +18,7 @@ const InstallWizardSettings = React.createClass({
18
18
19
19
render ( ) {
20
20
let options = this . props . options ;
21
- let requiredOptions = [ 'system.url-perfix ' , 'system.admin-email' ] ;
21
+ let requiredOptions = [ 'system.url-prefix ' , 'system.admin-email' ] ;
22
22
let missingOptions = new Set ( requiredOptions . filter ( option => options [ option ] ) ) ;
23
23
let formValid = false ;
24
24
@@ -51,6 +51,10 @@ const InstallWizardSettings = React.createClass({
51
51
} ) ;
52
52
53
53
const InstallWizard = React . createClass ( {
54
+ mixins : [
55
+ ApiMixin
56
+ ] ,
57
+
54
58
getInitialState ( ) {
55
59
return {
56
60
loading : true ,
@@ -68,7 +72,7 @@ const InstallWizard = React.createClass({
68
72
} ,
69
73
70
74
fetchData ( callback ) {
71
- api . request ( '/internal/options/' , {
75
+ this . api . request ( '/internal/options/' , {
72
76
method : 'GET' ,
73
77
success : ( data ) => {
74
78
this . setState ( {
You can’t perform that action at this time.
0 commit comments