expenditures: added badge for open approvals
This commit is contained in:
@@ -71,7 +71,7 @@
|
||||
<a href="<?php echo LINK_PRE; ?>expenditures" class="show-loggedin">
|
||||
<i class="fa font-14 fa-money-bill-wave rounded-s bg-highlight color-white"></i>
|
||||
<span>Ausgaben-Verwaltung</span>
|
||||
<!--<span id="badge-more-expenditures" class="badge bg-highlight color-white"></span>-->
|
||||
<span id="badge-more-expenditures" class="badge bg-highlight color-white"></span>
|
||||
<i class="fa fa-angle-right"></i>
|
||||
</a>
|
||||
<a href="<?php echo LINK_PRE; ?>trim_list">
|
||||
|
||||
@@ -100,6 +100,7 @@ async function expendituresInitModals() {
|
||||
},
|
||||
success: async function (data, status, xhr) {
|
||||
await sync();
|
||||
updateExpendituresBadge();
|
||||
$('#menu-add').hideMenu();
|
||||
hideLoader();
|
||||
toastOk('Ausgabe gespeichert. Betrag wurde durch ' + data.count + ' Personen geteilt.');
|
||||
@@ -199,6 +200,7 @@ async function expendituresInitModals() {
|
||||
},
|
||||
success: async function (data, status, xhr) {
|
||||
await sync();
|
||||
updateExpendituresBadge();
|
||||
$('#menu-add-transfer').hideMenu();
|
||||
hideLoader();
|
||||
toastOk(direction ? 'Geldtransfer gespeichert. ' + (await dbGetData('users', selectedUser)).username + ' muss dies noch bestätigen' : 'Geldtransfer wurde gespeichert');
|
||||
|
||||
@@ -78,8 +78,9 @@ function expenditureAction(action, expId, successStr) {
|
||||
}
|
||||
hideLoader();
|
||||
},
|
||||
success: function (data, status, xhr) {
|
||||
sync();
|
||||
success: async function (data, status, xhr) {
|
||||
await sync();
|
||||
updateExpendituresBadge();
|
||||
hideLoader();
|
||||
toastOk(successStr);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user