projects
/
arvados-workbench2.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
19143: Workflow objects appear in project view, are runnable.
[arvados-workbench2.git]
/
src
/
services
/
api
/
order-builder.ts
diff --git
a/src/services/api/order-builder.ts
b/src/services/api/order-builder.ts
index 03f2696a5614178daa4aaec77e0d346d045faf75..3fc49009ad2e9f8615849752dc5c53f03386ecf9 100644
(file)
--- a/
src/services/api/order-builder.ts
+++ b/
src/services/api/order-builder.ts
@@
-2,8
+2,8
@@
//
// SPDX-License-Identifier: AGPL-3.0
//
// SPDX-License-Identifier: AGPL-3.0
-import
* as _
from "lodash";
-import { Resource } from "
src/
models/resource";
+import
{ snakeCase }
from "lodash";
+import { Resource } from "models/resource";
export enum OrderDirection { ASC, DESC }
export enum OrderDirection { ASC, DESC }
@@
-12,7
+12,7
@@
export class OrderBuilder<T extends Resource = Resource> {
constructor(private order: string[] = []) {}
addOrder(direction: OrderDirection, attribute: keyof T, prefix?: string) {
constructor(private order: string[] = []) {}
addOrder(direction: OrderDirection, attribute: keyof T, prefix?: string) {
- this.order.push(`${prefix ? prefix + "." : ""}${
_.
snakeCase(attribute.toString())} ${direction === OrderDirection.ASC ? "asc" : "desc"}`);
+ this.order.push(`${prefix ? prefix + "." : ""}${snakeCase(attribute.toString())} ${direction === OrderDirection.ASC ? "asc" : "desc"}`);
return this;
}
return this;
}