⚝
One Hat Cyber Team
⚝
Your IP:
216.73.217.4
Server IP:
41.128.143.86
Server:
Linux host.raqmix.cloud 6.8.0-1025-azure #30~22.04.1-Ubuntu SMP Wed Mar 12 15:28:20 UTC 2025 x86_64
Server Software:
Apache
PHP Version:
8.3.23
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
usr
/
share
/
grafana
/
public
/
app
/
features
/
profile
/
View File Name :
UserOrganizations.tsx
import React, { PureComponent } from 'react'; import { selectors } from '@grafana/e2e-selectors'; import { Button, LoadingPlaceholder } from '@grafana/ui'; import { Trans } from 'app/core/internationalization'; import { UserDTO, UserOrg } from 'app/types'; export interface Props { user: UserDTO | null; orgs: UserOrg[]; isLoading: boolean; setUserOrg: (org: UserOrg) => void; } export class UserOrganizations extends PureComponent
{ render() { const { isLoading, orgs, user } = this.props; if (isLoading) { return
; } if (orgs.length === 0) { return null; } return (
Organizations
Name
Role
{orgs.map((org: UserOrg, index) => { return (
{org.name}
{org.role}
{org.orgId === user?.orgId ? (
Current
) : (
{ this.props.setUserOrg(org); }} >
Select organisation
)}
); })}
); } } export default UserOrganizations;