Move edit actions bar to components directory

pull/3773/head
Alex Dik 9 years ago
parent 1272eb67a5
commit 23be21e66a
  1. 0
      frontend/app/components/inplace-edit/directives/edit-actions-bar/edit-actions-bar.directive.html
  2. 10
      frontend/app/components/inplace-edit/directives/edit-actions-bar/edit-actions-bar.directive.js
  3. 2
      frontend/app/templates/work_packages.list.details.html
  4. 2
      frontend/app/templates/work_packages.show.html
  5. 3
      frontend/app/work_packages/directives/index.js

@ -26,11 +26,17 @@
// See doc/COPYRIGHT.rdoc for more details.
// ++
module.exports = function () {
angular
.module('openproject.inplace-edit')
.directive('editActionsBar', editActionsBar);
function editActionsBar() {
return {
restrict: 'E',
replace: true,
templateUrl: '/templates/work_packages/work_package_edit_actions.html',
templateUrl: '/components/inplace-edit/directives/edit-actions-bar/' +
'edit-actions-bar.directive.html',
scope: {},
controller: ['$scope', 'I18n', 'EditableFieldsState', '$window', function ($scope, I18n,

@ -36,5 +36,5 @@
<div class="bottom-toolbar">
<work-package-details-toolbar work-package='workPackage'></work-package-details-toolbar>
<work-package-edit-actions></work-package-edit-actions>
<edit-actions-bar></edit-actions-bar>
</div>

@ -160,7 +160,7 @@
<work-package-attachments edit data-ng-show="!vm.hideEmptyFields || vm.filesExist" work-package="vm.workPackage"></work-package-attachments>
<work-package-edit-actions></work-package-edit-actions>
<edit-actions-bar></edit-actions-bar>
</div>
</div>
<div class="work-packages--right-panel">

@ -72,9 +72,6 @@ angular.module('openproject.workPackages.directives')
'WorkPackageAuthorization',
require('./work-package-details-toolbar-directive')
])
.directive('workPackageEditActions', [
require('./work-package-edit-actions-directive')
])
.directive('workPackageDynamicAttribute', ['$compile', require(
'./work-package-dynamic-attribute-directive')])
.directive('workPackageGroupHeader', require(

Loading…
Cancel
Save