mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Serviceaccounts: FIX nul for field for toString
(#96267)
Switch to uid for profilerow
This commit is contained in:
parent
8a1bbe7517
commit
6fa06a1406
@ -1,7 +1,7 @@
|
|||||||
import { css } from '@emotion/css';
|
import { css } from '@emotion/css';
|
||||||
import { useState, useEffect } from 'react';
|
import { useEffect, useState } from 'react';
|
||||||
|
|
||||||
import { dateTimeFormat, GrafanaTheme2, OrgRole, TimeZone } from '@grafana/data';
|
import { GrafanaTheme2, OrgRole, TimeZone, dateTimeFormat } from '@grafana/data';
|
||||||
import { Label, TextLink, useStyles2 } from '@grafana/ui';
|
import { Label, TextLink, useStyles2 } from '@grafana/ui';
|
||||||
import { fetchRoleOptions } from 'app/core/components/RolePicker/api';
|
import { fetchRoleOptions } from 'app/core/components/RolePicker/api';
|
||||||
import { contextSrv } from 'app/core/core';
|
import { contextSrv } from 'app/core/core';
|
||||||
@ -50,7 +50,13 @@ export function ServiceAccountProfile({ serviceAccount, timeZone, onChange }: Pr
|
|||||||
<h3>Information</h3>
|
<h3>Information</h3>
|
||||||
<table className="filter-table">
|
<table className="filter-table">
|
||||||
<tbody>
|
<tbody>
|
||||||
<ServiceAccountProfileRow label="Numerical identifier" value={serviceAccount.id.toString()} disabled={true} />
|
{serviceAccount.id && (
|
||||||
|
<ServiceAccountProfileRow
|
||||||
|
label="Numerical identifier"
|
||||||
|
value={serviceAccount.id.toString()}
|
||||||
|
disabled={true}
|
||||||
|
/>
|
||||||
|
)}
|
||||||
<ServiceAccountProfileRow
|
<ServiceAccountProfileRow
|
||||||
label="Name"
|
label="Name"
|
||||||
value={serviceAccount.name}
|
value={serviceAccount.name}
|
||||||
|
Loading…
Reference in New Issue
Block a user