Skip to content
This repository has been archived by the owner on Jun 30, 2024. It is now read-only.

ToDo #7

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}

Expand All @@ -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
}
</script>
Expand Down
9 changes: 7 additions & 2 deletions budgeteer/web_interface/vuejs_frontend/src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}
})
Expand Down
Loading