Alpha picker only returns items starting with selected letter

This commit is contained in:
Matt 2020-09-09 17:34:08 -04:00
parent 1c2d22309a
commit fba96da954
6 changed files with 11 additions and 11 deletions

View File

@ -163,7 +163,7 @@ import 'emby-scroller';
instance.setFilterStatus(hasFilters); instance.setFilterStatus(hasFilters);
if (instance.alphaPicker) { if (instance.alphaPicker) {
query.NameStartsWithOrGreater = instance.alphaPicker.value(); query.NameStartsWith = instance.alphaPicker.value();
} }
return query; return query;

View File

@ -25,7 +25,7 @@ import 'emby-itemscontainer';
const updateFilterControls = () => { const updateFilterControls = () => {
if (this.alphaPicker) { if (this.alphaPicker) {
this.alphaPicker.value(query.NameStartsWithOrGreater); this.alphaPicker.value(query.NameStartsWith);
} }
}; };
@ -168,7 +168,7 @@ import 'emby-itemscontainer';
if (alphaPickerElement) { if (alphaPickerElement) {
alphaPickerElement.addEventListener('alphavaluechanged', function (e) { alphaPickerElement.addEventListener('alphavaluechanged', function (e) {
let newValue = e.detail.value; let newValue = e.detail.value;
query.NameStartsWithOrGreater = newValue; query.NameStartsWith = newValue;
query.StartIndex = 0; query.StartIndex = 0;
itemsContainer.refreshItems(); itemsContainer.refreshItems();
}); });

View File

@ -185,7 +185,7 @@ import 'emby-itemscontainer';
const updateFilterControls = (tabContent) => { const updateFilterControls = (tabContent) => {
const query = getQuery(tabContent); const query = getQuery(tabContent);
this.alphaPicker.value(query.NameStartsWithOrGreater); this.alphaPicker.value(query.NameStartsWith);
}; };
const data = {}; const data = {};
@ -216,7 +216,7 @@ import 'emby-itemscontainer';
alphaPickerElement.addEventListener('alphavaluechanged', function (e) { alphaPickerElement.addEventListener('alphavaluechanged', function (e) {
const newValue = e.detail.value; const newValue = e.detail.value;
const query = getQuery(tabContent); const query = getQuery(tabContent);
query.NameStartsWithOrGreater = newValue; query.NameStartsWith = newValue;
query.StartIndex = 0; query.StartIndex = 0;
reloadItems(); reloadItems();
}); });

View File

@ -186,7 +186,7 @@ import 'emby-itemscontainer';
const updateFilterControls = (tabContent) => { const updateFilterControls = (tabContent) => {
const query = getQuery(); const query = getQuery();
this.alphaPicker.value(query.NameStartsWithOrGreater); this.alphaPicker.value(query.NameStartsWith);
}; };
let savedQueryKey; let savedQueryKey;
@ -219,7 +219,7 @@ import 'emby-itemscontainer';
alphaPickerElement.addEventListener('alphavaluechanged', function (e) { alphaPickerElement.addEventListener('alphavaluechanged', function (e) {
const newValue = e.detail.value; const newValue = e.detail.value;
const query = getQuery(); const query = getQuery();
query.NameStartsWithOrGreater = newValue; query.NameStartsWith = newValue;
query.StartIndex = 0; query.StartIndex = 0;
reloadItems(tabContent); reloadItems(tabContent);
}); });

View File

@ -169,7 +169,7 @@ import 'emby-itemscontainer';
const updateFilterControls = (tabContent) => { const updateFilterControls = (tabContent) => {
const query = getQuery(tabContent); const query = getQuery(tabContent);
this.alphaPicker.value(query.NameStartsWithOrGreater); this.alphaPicker.value(query.NameStartsWith);
}; };
const data = {}; const data = {};
@ -201,7 +201,7 @@ import 'emby-itemscontainer';
alphaPickerElement.addEventListener('alphavaluechanged', function (e) { alphaPickerElement.addEventListener('alphavaluechanged', function (e) {
const newValue = e.detail.value; const newValue = e.detail.value;
const query = getQuery(tabContent); const query = getQuery(tabContent);
query.NameStartsWithOrGreater = newValue; query.NameStartsWith = newValue;
query.StartIndex = 0; query.StartIndex = 0;
reloadItems(tabContent); reloadItems(tabContent);
}); });

View File

@ -198,7 +198,7 @@ import 'emby-itemscontainer';
function updateFilterControls(tabContent) { function updateFilterControls(tabContent) {
const query = getQuery(tabContent); const query = getQuery(tabContent);
self.alphaPicker.value(query.NameStartsWithOrGreater); self.alphaPicker.value(query.NameStartsWith);
} }
const self = this; const self = this;
@ -231,7 +231,7 @@ import 'emby-itemscontainer';
alphaPickerElement.addEventListener('alphavaluechanged', function (e) { alphaPickerElement.addEventListener('alphavaluechanged', function (e) {
const newValue = e.detail.value; const newValue = e.detail.value;
const query = getQuery(tabContent); const query = getQuery(tabContent);
query.NameStartsWithOrGreater = newValue; query.NameStartsWith = newValue;
query.StartIndex = 0; query.StartIndex = 0;
reloadItems(tabContent); reloadItems(tabContent);
}); });