mirror of https://gitlab.crans.org/bde/nk20
NameNAN
Signed-off-by: Yohann D'ANELLO <ynerant@crans.org>
This commit is contained in:
parent
69bb38297f
commit
d94cc2a7ad
|
@ -355,14 +355,14 @@ $('#btn_transfer').click(function () {
|
||||||
destination_alias: dest.name
|
destination_alias: dest.name
|
||||||
}).done(function () {
|
}).done(function () {
|
||||||
addMsg(interpolate(gettext('Transfer of %s from %s to %s failed: %s'),
|
addMsg(interpolate(gettext('Transfer of %s from %s to %s failed: %s'),
|
||||||
[pretty_money(source.quantity * dest.quantity * amount), source.name, + dest.name, gettext('insufficient funds')]), 'danger', 10000)
|
[pretty_money(source.quantity * dest.quantity * amount), source.name, dest.name, gettext('insufficient funds')]), 'danger', 10000)
|
||||||
reset()
|
reset()
|
||||||
}).fail(function (err) {
|
}).fail(function (err) {
|
||||||
const errObj = JSON.parse(err.responseText)
|
const errObj = JSON.parse(err.responseText)
|
||||||
let error = errObj.detail ? errObj.detail : errObj.non_field_errors
|
let error = errObj.detail ? errObj.detail : errObj.non_field_errors
|
||||||
if (!error) { error = err.responseText }
|
if (!error) { error = err.responseText }
|
||||||
addMsg(interpolate(gettext('Transfer of %s from %s to %s failed: %s'),
|
addMsg(interpolate(gettext('Transfer of %s from %s to %s failed: %s'),
|
||||||
[pretty_money(source.quantity * dest.quantity * amount), source.name, + dest.name, error]), 'danger')
|
[pretty_money(source.quantity * dest.quantity * amount), source.name, dest.name, error]), 'danger')
|
||||||
LOCK = false
|
LOCK = false
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in New Issue