fleet/frontend/interfaces/status_labels.ts
Martavis Parker b6659cfaaa
Refactored Manage Hosts (#2233)
* Add new feature: team policies

* Continue work on team policies

* Continue work on team policies

* Continue team policies

* Revert accidental deletion

* Rename variables

* code refactored; working on runtime errors

* updated front end docs

* Update URLs from team to teams, add tests for policy auth

* Fix test

* Continue work on team policies

* Add permission checks

* mange hosts functional and cleaned up; typing

* improved label logic

* added try catch to awaits

* lint fixes

* frontend unit tests don't work for functional components

* test fix

* revert

* Address errors related to refetch on window focus

* Add loading error check

* Fix typos in loading error checks

* Guard against invariant condition in useEffect

* Update links and routes for team policies

* lint fixes

* Update frontend/pages/hosts/ManageHostsPage/helpers.ts

Co-authored-by: gillespi314 <73313222+gillespi314@users.noreply.github.com>

* Change inherited policies button, tooltip

* lint fixes

Co-authored-by: gillespi314 <73313222+gillespi314@users.noreply.github.com>
Co-authored-by: Tomas Touceda <chiiph@gmail.com>
2021-09-30 12:32:06 -07:00

18 lines
393 B
TypeScript

import PropTypes from "prop-types";
export interface IStatusLabels {
loading_counts: boolean;
new_count: number;
online_count: number;
offline_count: number;
mia_count: number;
}
export default PropTypes.shape({
loading_counts: PropTypes.bool,
new_count: PropTypes.number,
online_count: PropTypes.number,
offline_count: PropTypes.number,
mia_count: PropTypes.number,
});