[Sqllab] Add offline state to sqllab (#6013)

* add timeout and refresh for failed backend

* show offline state instead of refreshing

* add southpane tests
This commit is contained in:
timifasubaa
2018-10-22 18:36:07 -07:00
committed by GitHub
parent b9257b2a09
commit fc3b68e234
12 changed files with 106 additions and 17 deletions

View File

@@ -227,7 +227,7 @@ class QuerySearch extends React.PureComponent {
<Select
name="select-status"
placeholder={t('[Query Status]')}
options={STATUS_OPTIONS.map(s => ({ value: s, label: s }))}
options={Object.keys(STATUS_OPTIONS).map(s => ({ value: s, label: s }))}
value={this.state.status}
isLoading={false}
autosize={false}