ServiceAccounts: Add token view for Service Accounts (#45013)

* fix SA creation scope

* add writer action to SA fixed role

* ServiceAccounts: Add token table to SA detail page

* ServiceAccounts: Allow deletion of tokens from token table

* refactor service account page

* avoid using store for delete
This commit is contained in:
J Guerreiro
2022-02-08 11:35:15 +00:00
committed by GitHub
parent f885c2ede9
commit 8c49e96439
9 changed files with 168 additions and 49 deletions

View File

@@ -1,5 +1,5 @@
import { WithAccessControlMetadata } from '@grafana/data';
import { OrgRole } from '.';
import { ApiKey, OrgRole } from '.';
export interface OrgServiceAccount {
serviceAccountId: number;
@@ -39,6 +39,7 @@ export interface ServiceAccountDTO extends WithAccessControlMetadata {
export interface ServiceAccountProfileState {
serviceAccount: ServiceAccountDTO;
isLoading: boolean;
tokens: ApiKey[];
}
export interface ServiceAccountsState {