Fix filtering when multiple project detail lists

There was an issue where the path passed to the gr-list-view was not
updated when the detail list switched from branches to tags or vice
versa. This is fixed by passing the detailType as a parameter in the
_getPath function, so that it gets updated when the detailType is
updated.

Change-Id: I937c9aea977f2b1028a2fa5f143b71add6b59b4c
This commit is contained in:
Becky Siegel
2017-07-06 14:07:47 -07:00
parent 217d270609
commit c01cb2c03a
7 changed files with 12 additions and 6 deletions

View File

@@ -60,7 +60,7 @@ limitations under the License.
<input is="iron-input"
type="text"
id="filter"
bind-value="{{_filter}}">
bind-value="{{filter}}">
</div>
<div id="createNewContainer"
class$="[[_computeCreateClass(createNew)]]">

View File

@@ -23,7 +23,7 @@
createNew: Boolean,
items: Array,
itemsPerPage: Number,
_filter: {
filter: {
type: String,
observer: '_filterChanged',
},