Skip to content

Commit

Permalink
Disable 'Create' button if no indices are found. Closes #330
Browse files Browse the repository at this point in the history
  • Loading branch information
Rashid Khan committed Sep 22, 2014
1 parent b31a781 commit 0aa6d2a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/kibana/apps/settings/sections/indices/_create.html
Original file line number Diff line number Diff line change
Expand Up @@ -111,10 +111,10 @@ <h1>Configure an index pattern</h1>
</div>

<button
ng-disabled="form.$invalid"
ng-disabled="form.$invalid || index.fetchFieldsError"
type="submit"
class="btn btn-success">
Create
{{index.fetchFieldsError ? "No indices found" : "Create" }}
</button>
</form>
</div>
Expand Down

0 comments on commit 0aa6d2a

Please sign in to comment.