From fd14473125b3c6ec662bccee4913b1d6494e0ee1 Mon Sep 17 00:00:00 2001 From: Catherine Renelle <32781029+catrenelle@users.noreply.github.com> Date: Mon, 16 Feb 2026 00:04:42 -0500 Subject: [PATCH] Hide Classify Uncategorized button when AI categorization is disabled Also checks that Ollama URL and model are configured before showing the button, consistent with the settings page behavior. Co-Authored-By: Claude Opus 4.6 --- frontend/src/views/transactions/TransactionsView.vue | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/frontend/src/views/transactions/TransactionsView.vue b/frontend/src/views/transactions/TransactionsView.vue index 4d5514a..7e16ce7 100644 --- a/frontend/src/views/transactions/TransactionsView.vue +++ b/frontend/src/views/transactions/TransactionsView.vue @@ -4,6 +4,7 @@

Transactions

([]) +const aiEnabled = ref(false) const classifying = ref(false) const classifySnackbar = ref(false) const classifySnackbarText = ref('') @@ -319,6 +321,10 @@ onMounted(async () => { if (props.id) { txnForm.value.accountId = props.id } + try { + const { data } = await aiCategorizationApi.getSettings() + aiEnabled.value = data.isEnabled && !!data.ollamaUrl?.trim() && !!data.modelName?.trim() + } catch {} }) watch(() => props.id, (newId) => {