mirror of
https://github.com/apache/skywalking-booster-ui.git
synced 2025-05-02 02:04:13 +00:00
feat: add support for case-insensitive search in the dashboard list (#418)
This commit is contained in:
parent
d65c18bd38
commit
a92365efcf
@ -612,7 +612,7 @@ limitations under the License. -->
|
|||||||
}
|
}
|
||||||
function searchDashboards(pageIndex: number) {
|
function searchDashboards(pageIndex: number) {
|
||||||
const list = JSON.parse(sessionStorage.getItem("dashboards") || "[]");
|
const list = JSON.parse(sessionStorage.getItem("dashboards") || "[]");
|
||||||
const arr = list.filter((d: { name: string }) => d.name.includes(searchText.value));
|
const arr = list.filter((d: { name: string }) => d.name.toLowerCase().includes(searchText.value.toLowerCase()));
|
||||||
|
|
||||||
total.value = arr.length;
|
total.value = arr.length;
|
||||||
dashboards.value = arr.filter(
|
dashboards.value = arr.filter(
|
||||||
|
Loading…
Reference in New Issue
Block a user