diff --git a/forge.config.ts b/forge.config.ts index 62c9a83..8b748d0 100644 --- a/forge.config.ts +++ b/forge.config.ts @@ -23,7 +23,7 @@ const config: ForgeConfig = { iconUrl: 'file:///' + __dirname + '/src/img/favicon.ico', description: "Oslo is a personal finance app for keeping track of your savings. You can set up standing orders, manage multiple accounts and view your expenses over different time spans.", name: "oslo", - version: "3.1.0" + version: "3.2.0" }, ['win32']), new MakerRpm({ options: { @@ -35,7 +35,7 @@ const config: ForgeConfig = { license: "MIT", name: "oslo", productName: "Oslo", - version: "3.1.0" + version: "3.2.0" } }, ['linux']), new MakerDeb({ @@ -47,7 +47,7 @@ const config: ForgeConfig = { homepage: "https://github.com/konstantin-lukas/oslo", name: "oslo", productName: "Oslo", - version: "3.1.0" + version: "3.2.0" } }, ['linux']) ], diff --git a/package.json b/package.json index 29b883d..36c6270 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "oslo", "productName": "Open Source Ledger Oslo", - "version": "3.1.0", + "version": "3.2.0", "description": "Oslo is a personal finance app for keeping track of your savings. You can set up standing orders, manage multiple accounts and view your expenses over different time spans.", "main": ".webpack/main", "scripts": { @@ -10,7 +10,7 @@ "package": "electron-forge package", "make": "electron-forge make", "build": "npm run package && npm run make", - "lint": "eslint --ext .ts,.tsx .", + "lint": "eslint --ext .ts,.tsx .", "test": "jest" }, "keywords": [], diff --git a/src/api.d.ts b/src/api.d.ts index ef4f02f..3ab66ad 100644 --- a/src/api.d.ts +++ b/src/api.d.ts @@ -11,6 +11,7 @@ declare type Transaction = { declare type StandingOrder = { id: number, title: string, + category: string, sum: string, exec_interval: number, exec_on: number, diff --git a/src/components/StandingOrder.tsx b/src/components/StandingOrder.tsx index a13e624..8a6d8d2 100644 --- a/src/components/StandingOrder.tsx +++ b/src/components/StandingOrder.tsx @@ -23,6 +23,7 @@ export default function StandingOrder({data, currency, intervalLabels, intervalV const text = useContext(TextContext); const [amount, setAmount] = useState(data.sum); const [name, setName] = useState(data.title); + const [category, setCategory] = useState(data.category); const [execOn, setExecOn] = useState(data.exec_on); const [execInterval, setExecInterval] = useState(data.exec_interval); @@ -45,6 +46,15 @@ export default function StandingOrder({data, currency, intervalLabels, intervalV + +