Skip to content
Snippets Groups Projects

Compare revisions

Changes are shown as if the source revision was being merged into the target revision. Learn more about comparing revisions.

Source

Select target project
No results found
Select Git revision
Loading items

Target

Select target project
  • coscine/frontend/apps/ui
1 result
Select Git revision
Loading items
Show changes
Commits on Source (2)
{ {
"name": "ui", "name": "ui",
"version": "2.2.3", "version": "2.2.4",
"private": true, "private": true,
"scripts": { "scripts": {
"dev": "vite", "dev": "vite",
......
...@@ -627,13 +627,17 @@ export const useResourceStore = defineStore({ ...@@ -627,13 +627,17 @@ export const useResourceStore = defineStore({
): Promise<MetadataTreeDto[] | null | undefined> { ): Promise<MetadataTreeDto[] | null | undefined> {
const notificationStore = useNotificationStore(); const notificationStore = useNotificationStore();
try { try {
const response = await TreeApi.getMetadataTree( const response = await wrapListRequest((pageNumber: number) =>
TreeApi.getMetadataTree(
projectId, projectId,
resourceId, resourceId,
filePath, filePath,
format format,
pageNumber,
50
)
); );
return response.data.data; return response;
} catch (error) { } catch (error) {
// Handle other Status Codes // Handle other Status Codes
notificationStore.postApiErrorNotification(error as AxiosError); notificationStore.postApiErrorNotification(error as AxiosError);
...@@ -648,12 +652,10 @@ export const useResourceStore = defineStore({ ...@@ -648,12 +652,10 @@ export const useResourceStore = defineStore({
): Promise<FileTreeDto[] | null | undefined> { ): Promise<FileTreeDto[] | null | undefined> {
const notificationStore = useNotificationStore(); const notificationStore = useNotificationStore();
try { try {
const response = await TreeApi.getFileTree( const response = await wrapListRequest((pageNumber: number) =>
projectId, TreeApi.getFileTree(projectId, resourceId, filePath, pageNumber, 50)
resourceId,
filePath
); );
return response.data.data; return response;
} catch (error) { } catch (error) {
// Handle other Status Codes // Handle other Status Codes
notificationStore.postApiErrorNotification(error as AxiosError); notificationStore.postApiErrorNotification(error as AxiosError);
......