Move WP accessible attribute directive to components

pull/4078/head
Alex Dik 9 years ago
parent cc86ebc8e6
commit f8f24e4097
  1. 4
      frontend/app/components/work-packages/wp-accessible-attribute/work-package-accessible-attribute.directive.test.ts
  2. 8
      frontend/app/components/work-packages/wp-accessible-attribute/work-package-accessible-attribute.directive.ts
  3. 3
      frontend/app/work_packages/directives/index.js

@ -26,13 +26,11 @@
// See doc/COPYRIGHT.rdoc for more details.
//++
/*jshint expr: true*/
describe('workPackageAccessibleAttributeDirective', function() {
var html = '<div work-package-accessible-attribute="field"></div>';
var scope, element, $compile;
beforeEach(module('openproject.workPackages.directives'));
beforeEach(angular.mock.module('openproject.workPackages.directives'));
beforeEach(inject(function(_$compile_,
$rootScope){

@ -26,7 +26,7 @@
// See doc/COPYRIGHT.rdoc for more details.
//++
module.exports = function() {
function workPackageAccessibleAttribute() {
return {
restrict: 'A',
scope: {
@ -46,4 +46,8 @@ module.exports = function() {
});
}
};
};
}
angular
.module('openproject.workPackages.directives')
.directive('workPackageAccessibleAttribute', workPackageAccessibleAttribute);

@ -87,7 +87,4 @@ angular.module('openproject.workPackages.directives')
'I18n',
'FocusHelper',
require('./work-package-watchers-lookup-directive.js')
])
.directive('workPackageAccessibleAttribute', [
require('./work-package-accessible-attribute-directive.js')
]);

Loading…
Cancel
Save