diff --git a/src/api/api.types.ts b/src/api/api.types.ts index d7f2cd6..429ab1e 100644 --- a/src/api/api.types.ts +++ b/src/api/api.types.ts @@ -1,4 +1,4 @@ -import type { ByLang } from "@/util.types"; +import type { ByLang, SweEng } from "@/util.types"; import type { AxiosProgressEvent } from "axios"; /** Properties common to most backend responses */ @@ -61,10 +61,19 @@ export type ResourceInfoOneData = ResourceInfo; /** Data about a resource and its job status */ export type ResourceInfo = { + owner?: UserData; resource: ResourceData; job: CorpusStatus; }; +/** Data about a Mink user */ +export type UserData = { + id: string; + name: string; + email: string; + ui_language: SweEng; +}; + /** Basic data about a resource */ export type ResourceData = { type: ResourceType; diff --git a/src/library/AdminResourcesView.vue b/src/library/AdminResourcesView.vue index 3acead5..9c6f69c 100644 --- a/src/library/AdminResourcesView.vue +++ b/src/library/AdminResourcesView.vue @@ -81,7 +81,7 @@ async function load(resourceId: string) {