move attachment upload button

pull/4858/head
Jens Ulferts 8 years ago
parent 6b03bc628f
commit 77392fd196
No known key found for this signature in database
GPG Key ID: 3CAA4B1182CF5308
  1. 5
      frontend/app/components/wp-details/wp-details-toolbar.directive.html
  2. 2
      frontend/tests/unit/tests/work_packages/directives/work-package-details-toolbar-test.js

@ -10,6 +10,9 @@
disabled="wpEditModeState.active"
ng-if="displayWatchButton">
</wp-watcher-button>
<wp-upload-button work-package="workPackage"></wp-upload-button>
<button class="button dropdown-relative"
ng-disabled="!actionsAvailable"
has-dropdown-menu
@ -19,6 +22,4 @@
<span class="button--text" ng-bind="::I18n.t('js.button_more')"></span>
<i class="button--dropdown-indicator"></i>
</button>
<wp-upload-button work-package="workPackage"></wp-upload-button>
</div>

@ -83,7 +83,7 @@ describe('workPackageDetailsToolbar', function() {
element = $compile(element)(scope);
angular.element(document.body).append(element);
scope.$digest();
element.find('button:eq(1)').click();
element.find('button:eq(2)').click();
};
}));

Loading…
Cancel
Save