mirror of
https://github.com/fleetdm/fleet
synced 2026-04-21 21:47:20 +00:00
- Schedule page functionality: Create (modal), delete (modal), view schedule, advanced options - Replaces Packs tab with Schedules tab - Updates e2e tests, mocks, stubs, etc - Defaults logging type to snapshot for packs - Adds conversion helpers and tests helper functions - Adds global_scheduled_queries to redux
48 lines
1.1 KiB
TypeScript
48 lines
1.1 KiB
TypeScript
import React from "react";
|
|
|
|
import Modal from "components/modals/Modal";
|
|
import Button from "components/buttons/Button";
|
|
|
|
const baseClass = "remove-scheduled-query-modal";
|
|
|
|
interface IRemoveScheduledQueryModalProps {
|
|
onCancel: () => void;
|
|
onSubmit: () => void;
|
|
}
|
|
|
|
const RemoveScheduledQueryModal = (
|
|
props: IRemoveScheduledQueryModalProps
|
|
): JSX.Element => {
|
|
const { onCancel, onSubmit } = props;
|
|
|
|
return (
|
|
<Modal
|
|
title={"Remove scheduled query"}
|
|
onExit={onCancel}
|
|
className={baseClass}
|
|
>
|
|
<div className={baseClass}>
|
|
Are you sure you want to remove the selected queries from the schedule?
|
|
<div className={`${baseClass}__btn-wrap`}>
|
|
<Button
|
|
className={`${baseClass}__btn`}
|
|
onClick={onCancel}
|
|
variant="inverse"
|
|
>
|
|
Cancel
|
|
</Button>
|
|
<Button
|
|
className={`${baseClass}__btn`}
|
|
type="button"
|
|
variant="alert"
|
|
onClick={onSubmit}
|
|
>
|
|
Remove
|
|
</Button>
|
|
</div>
|
|
</div>
|
|
</Modal>
|
|
);
|
|
};
|
|
|
|
export default RemoveScheduledQueryModal;
|