mirror of
https://github.com/grafana/grafana.git
synced 2026-09-05 04:40:13 -05:00
Service accounts: UI polish improvements (#47461)
* ui polishes * change icon
This commit is contained in:
+4
-1
@@ -64,8 +64,11 @@ export const CreateTokenModal = ({ isOpen, token, onCreateToken, onClose }: Crea
|
||||
<FieldSet>
|
||||
<Field
|
||||
label="Display name"
|
||||
description="Optional name to easily identify the token"
|
||||
description="name to easily identify the token"
|
||||
className={styles.modalRow}
|
||||
// for now this is required
|
||||
// need to make this optional in backend as well
|
||||
required={true}
|
||||
>
|
||||
<Input
|
||||
name="tokenName"
|
||||
@@ -17,7 +17,7 @@ import {
|
||||
import { ServiceAccountTokensTable } from './ServiceAccountTokensTable';
|
||||
import { getTimeZone, NavModel } from '@grafana/data';
|
||||
import { Button } from '@grafana/ui';
|
||||
import { CreateTokenModal } from './CreateTokenModal';
|
||||
import { CreateTokenModal } from './CreateServiceAccountTokenModal';
|
||||
import { contextSrv } from 'app/core/core';
|
||||
|
||||
interface OwnProps extends GrafanaRouteComponentProps<{ id: string }> {
|
||||
|
||||
@@ -66,10 +66,18 @@ export function ServiceAccountProfile({
|
||||
|
||||
return (
|
||||
<>
|
||||
<h3 className="page-heading">Information</h3>
|
||||
<a href="org/serviceaccounts">
|
||||
<Button variant="link" icon="backward" />
|
||||
</a>
|
||||
<div style={{ marginBottom: '10px' }}>
|
||||
<a href="org/serviceaccounts" style={{ display: 'inline-block', verticalAlign: 'middle' }}>
|
||||
<Button variant="link" icon="backward" />
|
||||
</a>
|
||||
<h1
|
||||
className="page-heading"
|
||||
style={{ display: 'inline-block', verticalAlign: 'middle', margin: '0!important', marginBottom: '0px' }}
|
||||
>
|
||||
{serviceAccount.name}
|
||||
</h1>
|
||||
</div>
|
||||
<span style={{ marginBottom: '10px' }}>Information</span>
|
||||
<div className="gf-form-group">
|
||||
<div className="gf-form">
|
||||
<table className="filter-table form-inline">
|
||||
|
||||
@@ -78,6 +78,7 @@ const ServiceAccountsListPage = ({
|
||||
return (
|
||||
<Page navModel={navModel}>
|
||||
<Page.Contents>
|
||||
<h2>Service accounts</h2>
|
||||
<div className="page-action-bar" style={{ justifyContent: 'flex-end' }}>
|
||||
<FilterInput
|
||||
placeholder="Search service account by name."
|
||||
@@ -123,7 +124,7 @@ const ServiceAccountsListPage = ({
|
||||
<thead>
|
||||
<tr>
|
||||
<th></th>
|
||||
<th>Display name</th>
|
||||
<th>Account</th>
|
||||
<th>ID</th>
|
||||
<th>Roles</th>
|
||||
<th>Status</th>
|
||||
|
||||
Reference in New Issue
Block a user