Skip to content

Commit

Permalink
Add router type to grid configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
guerler committed Nov 15, 2023
1 parent 2de314f commit ed14cd0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
6 changes: 4 additions & 2 deletions client/src/components/Grid/configs/types.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
import type Router from "vue-router";

import Filtering from "@/utils/filtering";

interface Action {
title: string;
icon?: string;
handler: (router: any) => void;
handler: (router: Router) => void;
}

type Field = FieldKey | FieldOperations;
Expand Down Expand Up @@ -55,5 +57,5 @@ export interface Operation {
title: string;
icon: string;
condition?: (data: RowData) => boolean;
handler: (data: RowData, router: any) => OperationHandlerReturn;
handler: (data: RowData, router: Router) => OperationHandlerReturn;
}
1 change: 1 addition & 0 deletions client/src/components/Grid/configs/visualizations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import { getGalaxyInstance } from "@/app";
import Filtering, { contains, equals, expandNameTag, toBool, type ValidFilter } from "@/utils/filtering";
import { withPrefix } from "@/utils/redirect";
import { errorMessageAsString, rethrowSimple } from "@/utils/simple-error";

import { type Config } from "./types";

/**
Expand Down

0 comments on commit ed14cd0

Please sign in to comment.