mirror of
https://github.com/fleetdm/fleet
synced 2026-05-18 06:28:40 +00:00
relates to #18848 This adds the UI that supports uploading a custom profile that applies to hosts that either: - have all selected labels - don't have any of the selected labels This includes UI updates for the Add Profile modal and the Custom Targets Modal, as well as code to support the new API. **include all on add profile modal:**  **exclude any on add profile modal:**  **dropdown options:**  **include all custom target modal:**  **exclude any custom target modal:**  <!-- Note that API documentation changes are now addressed by the product design team. --> - [x] Changes file added for user-visible changes in `changes/`, `orbit/changes/` or `ee/fleetd-chrome/changes`. See [Changes files](https://fleetdm.com/docs/contributing/committing-changes#changes-files) for more information. - [ ] Added/updated tests - [x] Manual QA for all new/changed functionality
17 lines
439 B
TypeScript
17 lines
439 B
TypeScript
import { ReactNode } from "react";
|
|
import PropTypes from "prop-types";
|
|
|
|
export default PropTypes.shape({
|
|
disabled: PropTypes.bool,
|
|
label: PropTypes.string,
|
|
value: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
|
|
});
|
|
|
|
export interface IDropdownOption {
|
|
disabled?: boolean;
|
|
label: string | JSX.Element;
|
|
value: string | number;
|
|
helpText?: ReactNode;
|
|
premiumOnly?: boolean;
|
|
tooltipContent?: string | JSX.Element;
|
|
}
|