mirror of https://github.com/portainer/portainer
21 lines
499 B
TypeScript
21 lines
499 B
TypeScript
import { TableSettingsMenuAutoRefresh } from '@@/datatables/TableSettingsMenuAutoRefresh';
|
|
|
|
import { TableSettings } from './types';
|
|
|
|
interface Props {
|
|
settings: TableSettings;
|
|
}
|
|
|
|
export function JobsDatatableSettings({ settings }: Props) {
|
|
return (
|
|
<TableSettingsMenuAutoRefresh
|
|
value={settings.autoRefreshRate}
|
|
onChange={handleRefreshRateChange}
|
|
/>
|
|
);
|
|
|
|
function handleRefreshRateChange(autoRefreshRate: number) {
|
|
settings.setAutoRefreshRate(autoRefreshRate);
|
|
}
|
|
}
|