mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Variables: added __user.email to global variable (#28853)
* added email to global variable. * forgot to increase the count.
This commit is contained in:
@@ -16,6 +16,7 @@ export class User {
|
||||
helpFlags1: number;
|
||||
lightTheme: boolean;
|
||||
hasEditPermissionInFolders: boolean;
|
||||
email?: string;
|
||||
|
||||
constructor() {
|
||||
if (config.bootData.user) {
|
||||
|
||||
@@ -161,6 +161,7 @@ export const addSystemTemplateVariables = (dashboard: DashboardModel): ThunkResu
|
||||
value: {
|
||||
login: contextSrv.user.login,
|
||||
id: contextSrv.user.id,
|
||||
email: contextSrv.user.email,
|
||||
toString: () => contextSrv.user.id.toString(),
|
||||
},
|
||||
},
|
||||
|
||||
@@ -110,6 +110,7 @@ export interface OrgVariableModel extends SystemVariable<OrgProps> {}
|
||||
export interface UserProps {
|
||||
login: string;
|
||||
id: number;
|
||||
email?: string;
|
||||
toString: () => string;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user