<buttonclass="add"ng-click="addDataset()">Add a dataset...</button>
<buttonclass="add"ng-click="addDataset()">Add a dataset...</button>
...
@@ -238,9 +241,17 @@
...
@@ -238,9 +241,17 @@
<buttonng-click="removeFilter($index)"title="remove this filter">x</button>
<buttonng-click="removeFilter($index)"title="remove this filter">x</button>
<span>...where the </span>
<span>...where the </span>
<selectng-model="filter.entity"ng-options="entity as entity.key for entity in entities"></select>
<selectng-model="filter.entity"ng-options="entity as entity.key for entity in entities"></select>
<selectng-if="filter.entity"ng-model="filter.column"ng-options="column as column.key for column in filter.entity.columns | orderBy:'key'"></select>
<spanng-if="filter.entity.key != 'ngrams'">
<selectng-if="filter.column"ng-model="filter.operator"ng-options="operator.key as operator.label for operator in operators[filter.column.type]"></select>
<selectng-if="filter.entity"ng-model="filter.column"ng-options="column as column.key for column in filter.entity.columns | orderBy:'key'"></select>
<selectng-if="filter.column"ng-model="filter.operator"ng-options="operator.key as operator.label for operator in operators[filter.column.type]"></select>
<tags-inputng-model="filter.value"display-property="terms"placeholder="Add an ngram"on-tag-added="updateQuery()"on-tag-removed="updateQuery()"add-from-autocomplete-only="true">