Fix frozen account display

This commit is contained in:
Ludovic Stephan 2021-02-20 15:40:52 +01:00
parent 1ab071d16e
commit b224fedf28
2 changed files with 12 additions and 1 deletions

View file

@ -41,10 +41,19 @@
} }
.frozen-account { .frozen-account {
background:#5072e0; background:#000FBA;
color:#fff; color:#fff;
} }
.frozen-account .btn-default {
color: #aaa;
}
.frozen-account .btn-default:hover, .frozen-account .btn-default.focus,
.frozen-account .btn-default:focus {
color: #ed2545;
}
.main .table a:not(.btn) { .main .table a:not(.btn) {
color: inherit; color: inherit;

View file

@ -69,6 +69,8 @@ var AccountView = Backbone.View.extend({
attr_data_balance: function () { attr_data_balance: function () {
if (this.model.id == 0) { if (this.model.id == 0) {
return ''; return '';
} else if (this.model.get("is_frozen")) {
return "frozen";
} else if (this.model.get("balance") < 0) { } else if (this.model.get("balance") < 0) {
return 'neg'; return 'neg';
} else if (this.model.get("balance") <= 5) { } else if (this.model.get("balance") <= 5) {