Add generic layout of listing cards
This should eventually by ported to other interfaces for consistency.
This commit is contained in:
parent
6db5186318
commit
83f76297b5
5 changed files with 267 additions and 2 deletions
|
|
@ -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,
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue