Skip to content

Commit

Permalink
name updates
Browse files Browse the repository at this point in the history
  • Loading branch information
alensiljak committed Nov 23, 2024
1 parent b667f71 commit e8a846d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/components/TransactionEditor.vue
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ if (!tx.value) {
// are we back from the select mode?
if (store.state.selectModeMeta) {
handleSelection()
handleEntitySelection()
}
// mounted
Expand Down Expand Up @@ -165,7 +165,7 @@ function getEmptyPostingIndex() {
/**
* Handle selection after a picker returned.
*/
async function handleSelection() {
async function handleEntitySelection() {
if (!tx.value) {
throw new Error('No transaction loaded!')
}
Expand Down
6 changes: 3 additions & 3 deletions src/pages/Accounts.vue
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ const filterText = ref('')
const dialogVisible = ref(false)
const newAccount = ref(null)
const confirmDeleteAllVisible = ref(false)
const pickerMode = ref(false)
const selectionMode = ref(false)
const $store = useStore()
let defaultCurrency: string
Expand All @@ -148,7 +148,7 @@ const filter = computed({
onMounted(async () => {
let meta = $store.state.selectModeMeta
pickerMode.value = !!meta
selectionMode.value = !!meta
await loadData()
})
Expand All @@ -164,7 +164,7 @@ function getBalance(account: Account) {
}
function itemClicked(id: string) {
if (pickerMode.value) {
if (selectionMode.value) {
// select the item and return to the caller.
$store.dispatch('setSelectedId', id)
Expand Down

0 comments on commit e8a846d

Please sign in to comment.