Skip to content

Commit

Permalink
Narrow EnrollStatus type in web UI (#48474)
Browse files Browse the repository at this point in the history
This makes the enroll status explicitly Enrolled or Not Enrolled instead
of just a string. Also, I've made 'owner' no longer optional now that
the code in `e` is merged
  • Loading branch information
avatus authored Nov 5, 2024
1 parent b4eda18 commit 91003b4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions web/packages/teleport/src/DeviceTrust/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ export type TrustedDevice = {
id: string;
assetTag: string;
osType: TrustedDeviceOSType;
enrollStatus: string;
owner?: string;
enrollStatus: 'Enrolled' | 'Not Enrolled';
owner: string;
};

export type TrustedDeviceOSType = 'Windows' | 'Linux' | 'macOS';
Expand Down

0 comments on commit 91003b4

Please sign in to comment.