Expand index.

This commit is contained in:
James Cole
2024-01-14 07:06:55 +01:00
parent 458402aaff
commit c2ddabbad2
7 changed files with 233 additions and 279 deletions

View File

@@ -73,9 +73,11 @@ let index = function () {
this.getTransactions(this.page);
},
getTransactions(page) {
const urlParts = window.location.href.split('/');
const type = urlParts[urlParts.length - 1];
let getter = new Get();
getter.list({page: page}).then(response => {
getter.list({page: page, type: type}).then(response => {
this.parseTransactions(response.data.data)
// set meta data

View File

@@ -49,7 +49,7 @@
</a>
</li>
<li class="nav-header">{{ strtoupper(__('firefly.accounting')) }}</li>
<li class="nav-item">
<li class="nav-item @partialroute('transactions') menu-open @endpartialroute">
<a href="#" class="nav-link">
<em class="nav-icon fa-solid fa-arrow-right-arrow-left"></em>
<p>