Fix saving a comment multiple times (#6054)

[ci skip]
pull/6057/head
Oliver Günther 7 years ago committed by GitHub
parent 71542e5c74
commit 9a1e7e55ae
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      frontend/app/components/work-packages/work-package-comment/work-package-comment.directive.ts
  2. 2
      frontend/app/components/wp-edit/field-controls/wp-edit-field-controls.directive.html

@ -104,7 +104,7 @@ export class CommentFieldDirectiveController {
}
public handleUserSubmit() {
if (this.field.isEmpty()) {
if (this.field.isBusy || this.field.isEmpty()) {
return;
}

@ -2,7 +2,7 @@
<div class="inplace-edit--controls"
ng-hide="!vm.fieldController.active">
<accessible-by-keyboard execute="vm.onSave()"
ng-disabled="vm.field.required && vm.field.isEmpty()"
ng-disabled="vm.field.isBusy || (vm.field.required && vm.field.isEmpty())"
is-disabled="vm.field.required && vm.field.isEmpty()"
link-title="{{ vm.saveTitle }}"
class="inplace-edit--control inplace-edit--control--save">

Loading…
Cancel
Save