Skip to content

Commit

Permalink
#14 Disable merge button after it has been clicked. This prevents use…
Browse files Browse the repository at this point in the history
…rs from clicking multiple times
  • Loading branch information
nadouani committed Nov 18, 2016
1 parent bf306cf commit 1dc88a3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ui/app/scripts/controllers/case/CaseMergeModalCtrl.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@

this.merge = function () {
// TODO pass params as path params not query params
this.pendingAsync = true;
CaseSrv.merge({}, {
caseId: me.caze.id,
mergedCaseId: me.search.cases[0].id
Expand All @@ -73,6 +74,7 @@

AlertSrv.log('The cases have been successfully merged into a new case #' + merged.caseId, 'success');
}, function (response) {
this.pendingAsync = false;
AlertSrv.error('CaseMergeModalCtrl', response.data, response.status);
});
};
Expand Down

0 comments on commit 1dc88a3

Please sign in to comment.