2022-11-13 10:29:25 +00:00
|
|
|
import { TableSettingsMenuAutoRefresh } from '@@/datatables/TableSettingsMenuAutoRefresh';
|
|
|
|
|
2022-11-22 12:16:34 +00:00
|
|
|
import { TableSettings } from './types';
|
2022-11-13 10:29:25 +00:00
|
|
|
|
2022-11-22 12:16:34 +00:00
|
|
|
interface Props {
|
|
|
|
settings: TableSettings;
|
|
|
|
}
|
2022-11-13 10:29:25 +00:00
|
|
|
|
2022-11-22 12:16:34 +00:00
|
|
|
export function JobsDatatableSettings({ settings }: Props) {
|
2022-11-13 10:29:25 +00:00
|
|
|
return (
|
|
|
|
<TableSettingsMenuAutoRefresh
|
|
|
|
value={settings.autoRefreshRate}
|
|
|
|
onChange={handleRefreshRateChange}
|
|
|
|
/>
|
|
|
|
);
|
|
|
|
|
|
|
|
function handleRefreshRateChange(autoRefreshRate: number) {
|
2022-11-22 12:16:34 +00:00
|
|
|
settings.setAutoRefreshRate(autoRefreshRate);
|
2022-11-13 10:29:25 +00:00
|
|
|
}
|
|
|
|
}
|