2018-01-03 08:50:39 -06: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 LoginBackground from './components/Login/LoginBackground';
|
|
|
|
import { SearchResult } from './components/search/SearchResult';
|
2018-01-16 05:52:13 -06:00
|
|
|
import { TagFilter } from './components/TagFilter/TagFilter';
|
2018-01-18 08:49:15 -06:00
|
|
|
import UserPicker from './components/Picker/UserPicker';
|
2018-01-11 03:47:39 -06:00
|
|
|
import Permissions from './components/Permissions/Permissions';
|
2017-10-22 00:03:26 -05:00
|
|
|
|
|
|
|
export function registerAngularDirectives() {
|
2018-01-03 08:50:39 -06:00
|
|
|
react2AngularDirective('passwordStrength', PasswordStrength, ['password']);
|
|
|
|
react2AngularDirective('pageHeader', PageHeader, ['model', 'noTabs']);
|
|
|
|
react2AngularDirective('emptyListCta', EmptyListCTA, ['model']);
|
|
|
|
react2AngularDirective('loginBackground', LoginBackground, []);
|
|
|
|
react2AngularDirective('searchResult', SearchResult, []);
|
2018-01-16 05:52:13 -06:00
|
|
|
react2AngularDirective('tagFilter', TagFilter, [
|
|
|
|
'tags',
|
|
|
|
['onSelect', { watchDepth: 'reference' }],
|
|
|
|
['tagOptions', { watchDepth: 'reference' }],
|
|
|
|
]);
|
2018-01-17 09:52:18 -06:00
|
|
|
react2AngularDirective('selectUserPicker', UserPicker, ['backendSrv', 'handlePicked']);
|
2018-01-18 08:49:15 -06:00
|
|
|
react2AngularDirective('permissions', Permissions, ['error', 'aclTypes', 'typeChanged', 'backendSrv', 'dashboardId']);
|
2017-10-22 00:03:26 -05:00
|
|
|
}
|