diff --git a/budgeteer/web_interface/vuejs_frontend/src/components/Budgets.vue b/budgeteer/web_interface/vuejs_frontend/src/components/Budgets.vue index f73bfd6..15500f3 100644 --- a/budgeteer/web_interface/vuejs_frontend/src/components/Budgets.vue +++ b/budgeteer/web_interface/vuejs_frontend/src/components/Budgets.vue @@ -52,7 +52,7 @@ function showEntry(entry) { if (store.state.locked && displayMonthIsCurrentMonth()) { return !checkEntryBookedThisMonth(entry) && checkEntryInDisplayMonth(entry) } else { - return checkEntryInDisplayMonth(entry) + return checkEntryInDisplayMonth(entry) // this is wrong if we are unlocked, as we then want to show all entries } } @@ -72,6 +72,8 @@ function checkEntryInDisplayMonth(entry) { } function checkEntryBookedThisMonth(entry) { + // todo check entry type (weekly, monthly, yearly, one-time) here + // the following check only applies to monthly entries return entry.booked === store.state.display_month } diff --git a/budgeteer/web_interface/vuejs_frontend/src/main.js b/budgeteer/web_interface/vuejs_frontend/src/main.js index 9150611..5d6edc1 100644 --- a/budgeteer/web_interface/vuejs_frontend/src/main.js +++ b/budgeteer/web_interface/vuejs_frontend/src/main.js @@ -73,8 +73,13 @@ const store = createStore({ state.misc.docker = docker }, setLocked(state, locked) { state.locked = locked - }, setModifiedWhileLocked(state, locked) { - state.modified_while_locked = locked + }, setModifiedWhileLocked(state, modified) { + if (modified) { + document.title = "BudgeTeer (ungespeichert!)" + } else { + document.title = "BudgeTeer" + } + state.modified_while_locked = modified } } })