Add generic layout of listing cards

This should eventually by ported to other interfaces for consistency.
This commit is contained in:
Eli Ribble 2026-05-18 15:21:01 +00:00
parent 6db5186318
commit 83f76297b5
No known key found for this signature in database
5 changed files with 267 additions and 2 deletions

View file

@ -92,6 +92,9 @@ function createResourceStore<dto, full extends uriHaver>(
throw err;
}
}
function loadingAll(): boolean {
return !!_resourceFetchAll.value;
}
function loadingURI(uri: string): boolean {
return !!_resourceFetchByURI.value.get(uri);
}
@ -105,6 +108,7 @@ function createResourceStore<dto, full extends uriHaver>(
fetchAll,
fetchByID,
fetchByURI,
loadingAll,
loadingURI,
};
}