Better account index in v2.

This commit is contained in:
James Cole
2024-04-23 07:00:08 +02:00
parent 3cfd178cbd
commit 649f876437
5 changed files with 1988 additions and 1882 deletions

View File

@@ -70,6 +70,9 @@ let index = function () {
},
totalPages: 1,
page: 1,
filters: {
active: 'both',
},
// available columns:
// visible is hard coded, enabled is user-configurable.
@@ -87,7 +90,7 @@ let index = function () {
enabled: true,
},
type: {
visible: true,
visible: type === 'asset',
enabled: true,
},
liability_type: {
@@ -291,6 +294,14 @@ function loadPage() {
let data = comps[comp]();
Alpine.data(comp, () => data);
});
Alpine.magic("t", (el) => {
return (name, vars) => {
return i18next.t(name, vars);
};
});
Alpine.start();
}