2018-01-03 22:50:39 +08:00
|
|
|
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 { SearchResult } from './components/search/SearchResult';
|
2018-01-16 19:52:13 +08:00
|
|
|
import { TagFilter } from './components/TagFilter/TagFilter';
|
2018-01-28 00:26:40 +08:00
|
|
|
import DashboardPermissions from './components/Permissions/DashboardPermissions';
|
2017-10-22 13:03:26 +08:00
|
|
|
|
|
|
|
|
export function registerAngularDirectives() {
|
2018-01-03 22:50:39 +08:00
|
|
|
react2AngularDirective('passwordStrength', PasswordStrength, ['password']);
|
|
|
|
|
react2AngularDirective('pageHeader', PageHeader, ['model', 'noTabs']);
|
|
|
|
|
react2AngularDirective('emptyListCta', EmptyListCTA, ['model']);
|
|
|
|
|
react2AngularDirective('searchResult', SearchResult, []);
|
2018-01-16 19:52:13 +08:00
|
|
|
react2AngularDirective('tagFilter', TagFilter, [
|
|
|
|
|
'tags',
|
|
|
|
|
['onSelect', { watchDepth: 'reference' }],
|
|
|
|
|
['tagOptions', { watchDepth: 'reference' }],
|
|
|
|
|
]);
|
2018-02-05 18:09:05 +08:00
|
|
|
react2AngularDirective('dashboardPermissions', DashboardPermissions, ['backendSrv', 'dashboardId', 'folder']);
|
2017-10-22 13:03:26 +08:00
|
|
|
}
|