|
@@ -25,6 +25,7 @@ export interface DashboardAcl {
|
|
|
|
|
|
|
|
export interface IProps {
|
|
export interface IProps {
|
|
|
dashboardId: number;
|
|
dashboardId: number;
|
|
|
|
|
+ folderTitle?: string;
|
|
|
permissions?: any;
|
|
permissions?: any;
|
|
|
isFolder: boolean;
|
|
isFolder: boolean;
|
|
|
backendSrv: any;
|
|
backendSrv: any;
|
|
@@ -86,7 +87,7 @@ class Permissions extends Component<IProps, any> {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
render() {
|
|
render() {
|
|
|
- const { permissions, backendSrv } = this.props;
|
|
|
|
|
|
|
+ const { permissions, folderTitle, backendSrv } = this.props;
|
|
|
|
|
|
|
|
return (
|
|
return (
|
|
|
<div className="gf-form-group">
|
|
<div className="gf-form-group">
|
|
@@ -95,6 +96,7 @@ class Permissions extends Component<IProps, any> {
|
|
|
removeItem={this.removeItem}
|
|
removeItem={this.removeItem}
|
|
|
permissionChanged={this.permissionChanged}
|
|
permissionChanged={this.permissionChanged}
|
|
|
fetching={permissions.fetching}
|
|
fetching={permissions.fetching}
|
|
|
|
|
+ folderTitle={folderTitle}
|
|
|
/>
|
|
/>
|
|
|
<div className="gf-form-inline">
|
|
<div className="gf-form-inline">
|
|
|
<form name="addPermission" className="gf-form-group">
|
|
<form name="addPermission" className="gf-form-group">
|
|
@@ -144,8 +146,8 @@ class Permissions extends Component<IProps, any> {
|
|
|
<div className="grafana-info-box">
|
|
<div className="grafana-info-box">
|
|
|
<h5>What are Permissions?</h5>
|
|
<h5>What are Permissions?</h5>
|
|
|
<p>
|
|
<p>
|
|
|
- An Access Control List (ACL) model is used for to limit access to Dashboard Folders. A user or a Team can
|
|
|
|
|
- be assigned permissions for a folder or for a single dashboard.
|
|
|
|
|
|
|
+ An Access Control List (ACL) model is used to limit access to Dashboard Folders. A user or a Team can be
|
|
|
|
|
+ assigned permissions for a folder or for a single dashboard.
|
|
|
</p>
|
|
</p>
|
|
|
<p>The permissions that can be assigned for a folder/dashboard are:</p>
|
|
<p>The permissions that can be assigned for a folder/dashboard are:</p>
|
|
|
<p>View, Edit and Admin.</p>
|
|
<p>View, Edit and Admin.</p>
|