mirror of
https://github.com/grafana/grafana.git
synced 2025-02-20 11:48:34 -06:00
In the permissions view in dashboard settings, this adds a link to the parent folder for inherited permissions. Which allows the user to easily navigate to the folder and change inherited permissions.
31 lines
1.4 KiB
TypeScript
31 lines
1.4 KiB
TypeScript
import { react2AngularDirective } from 'app/core/utils/react2angular';
|
|
import { PasswordStrength } from './components/PasswordStrength';
|
|
import PageHeader from './components/PageHeader/PageHeader';
|
|
import EmptyListCTA from './components/EmptyListCTA/EmptyListCTA';
|
|
import LoginBackground from './components/Login/LoginBackground';
|
|
import { SearchResult } from './components/search/SearchResult';
|
|
import { TagFilter } from './components/TagFilter/TagFilter';
|
|
import UserPicker from './components/Picker/UserPicker';
|
|
import DashboardPermissions from './components/Permissions/DashboardPermissions';
|
|
|
|
export function registerAngularDirectives() {
|
|
react2AngularDirective('passwordStrength', PasswordStrength, ['password']);
|
|
react2AngularDirective('pageHeader', PageHeader, ['model', 'noTabs']);
|
|
react2AngularDirective('emptyListCta', EmptyListCTA, ['model']);
|
|
react2AngularDirective('loginBackground', LoginBackground, []);
|
|
react2AngularDirective('searchResult', SearchResult, []);
|
|
react2AngularDirective('tagFilter', TagFilter, [
|
|
'tags',
|
|
['onSelect', { watchDepth: 'reference' }],
|
|
['tagOptions', { watchDepth: 'reference' }],
|
|
]);
|
|
react2AngularDirective('selectUserPicker', UserPicker, ['backendSrv', 'handlePicked']);
|
|
react2AngularDirective('dashboardPermissions', DashboardPermissions, [
|
|
'backendSrv',
|
|
'dashboardId',
|
|
'folderTitle',
|
|
'folderSlug',
|
|
'folderId',
|
|
]);
|
|
}
|