UNPKG

@skbkontur/cassandra-distributed-task-queue-ui

Version:

.NET library implementing distributed task queue machinery using Apache Cassandra

30 lines (29 loc) 1.04 kB
import { Component, ReactElement } from "react"; import { Location } from "react-router-dom"; import { RtqMonitoringTaskMeta } from "../../Domain/Api/RtqMonitoringTaskMeta"; export interface TaskTableProps { taskInfos: RtqMonitoringTaskMeta[]; allowRerunOrCancel: boolean; chosenTasks: Set<string>; onRerun: (x0: string) => void; onCancel: (x0: string) => void; onCheck: (taskId: string) => void; getTaskLocation: (x0: string) => string | Partial<Location>; } interface TasksTableState { openedModal: boolean; modalType: "Cancel" | "Rerun"; actionTask: string; } export declare class TasksTable extends Component<TaskTableProps, TasksTableState> { state: TasksTableState; private theme; shouldComponentUpdate(nextProps: TaskTableProps, nextState: TasksTableState): boolean; render(): ReactElement; renderRow(item: RtqMonitoringTaskMeta): ReactElement; renderModal(): ReactElement; rerun(id: string): void; cancel(id: string): void; closeModal(): void; } export {};