The annotation modal's result was not actually being returned, so I fixed
ui.js's egPromptDialog.
Signed-off by: Cesar Velez <cesar.velez@equinoxinitiative.org>
Signed-off-by: Galen Charlton <gmc@equinoxinitiative.org>
function() { // amount confirmed
add_payment_note().then(function(pay_note) {
add_cc_args().then(function(cc_args) {
- sendPayment(pay_note, cc_args);
+ sendPayment(pay_note.value, cc_args);
})
});
},
$scope.args = {value : promptValue || ''};
$scope.focus = true;
$scope.ok = function() {
- if (msg_scope.ok) msg_scope.ok($scope.args.value);
- $uibModalInstance.close()
+ if (msg_scope && msg_scope.ok) msg_scope.ok($scope.args.value);
+ $uibModalInstance.close($scope.args);
}
$scope.cancel = function() {
- if (msg_scope.cancel) msg_scope.cancel();
+ if (msg_scope && msg_scope.cancel) msg_scope.cancel();
$uibModalInstance.dismiss();
}
}