X-Git-Url: https://git.arvados.org/arvados-workbench2.git/blobdiff_plain/355aa79f1a2abb5e8142062d83f897d780cc8a8e..a738a3bda2cd15740388f97488aaeb04edfd2385:/src/common/labels.ts diff --git a/src/common/labels.ts b/src/common/labels.ts index 9567ce14..0e3131db 100644 --- a/src/common/labels.ts +++ b/src/common/labels.ts @@ -2,17 +2,17 @@ // // SPDX-License-Identifier: AGPL-3.0 -import { ResourceKind } from "../models/resource"; +import { ResourceKind } from "~/models/resource"; export const resourceLabel = (type: string) => { switch (type) { - case ResourceKind.Collection: + case ResourceKind.COLLECTION: return "Data collection"; - case ResourceKind.Project: + case ResourceKind.PROJECT: return "Project"; - case ResourceKind.Process: + case ResourceKind.PROCESS: return "Process"; default: return "Unknown"; } -}; \ No newline at end of file +};