-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1101 from equinor/master
Release Configure Service Principals (#1099)
- Loading branch information
Showing
14 changed files
with
456 additions
and
193 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,30 @@ | ||
import { List } from '@equinor/eds-core-react'; | ||
import { Icon, List } from '@equinor/eds-core-react'; | ||
import { computer, group } from '@equinor/eds-icons'; | ||
import { Alert } from '../alert'; | ||
|
||
interface Props { | ||
unknownADGroups?: Array<string>; | ||
unknownADUsers?: Array<string>; | ||
} | ||
export function UnknownADGroupsAlert({ unknownADGroups }: Props) { | ||
export function UnknownADGroupsAlert({ | ||
unknownADGroups, | ||
unknownADUsers, | ||
}: Props) { | ||
return ( | ||
<> | ||
{unknownADGroups?.length > 0 && ( | ||
<Alert type="danger"> | ||
Unknown or deleted AD group(s) | ||
<List className="o-indent-list"> | ||
{unknownADGroups.map((adGroup) => ( | ||
<List.Item key={adGroup}>{adGroup}</List.Item> | ||
))} | ||
</List> | ||
</Alert> | ||
)} | ||
</> | ||
<Alert type="danger"> | ||
Unknown or deleted Entra object(s) | ||
<List className="o-indent-list"> | ||
{unknownADGroups.map((adGroup) => ( | ||
<List.Item key={adGroup}> | ||
<Icon data={group} size={16} /> {adGroup} | ||
</List.Item> | ||
))} | ||
{unknownADUsers.map((adSp) => ( | ||
<List.Item key={adSp}> | ||
<Icon data={computer} size={16} /> {adSp} | ||
</List.Item> | ||
))} | ||
</List> | ||
</Alert> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.