feat(ui): improve the records table, view state and record dialog
Sortable record columns, filters and sort kept in the URL on the zones, zone and audit pages, a Show action that filters the records table to a problem's owner, Save and add another, a highlight of the saved row, an Audit history link on the zone page, and dialogs that keep typed input on a backdrop click.
This commit is contained in:
1 parent
a67183b646
commit
440f78ce9e
9 files changed
+419
-36
No files matched your search
@@ -76,8 +76,8 @@ export function displayName(record) {
|
||||
|
||||
export function matchesFilter(record, type, text) {
|
||||
if (type && record.type !== type) return false;
|
||||
if (!text) return true;
|
||||
const needle = text.toLowerCase();
|
||||
const needle = text.trim().toLowerCase();
|
||||
if (!needle) return true;
|
||||
const haystack = [displayName(record), record.fqdn || "", record.type, presentValue(record)].join(" ").toLowerCase();
|
||||
return haystack.includes(needle);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user