fix(portal) : handle ticket creation error and hide new ticket button for admins

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-03-15 20:04:20 +01:00
parent 2c28a4ad1d
commit f8748c4061
2 changed files with 4 additions and 0 deletions
@@ -125,6 +125,8 @@ async function handleSubmit() {
project: `/api/projects/${projectId.value}`,
})
await navigateTo(`/portal/projects/${projectId.value}`)
} catch {
// Toast already shown by useApi
} finally {
isSubmitting.value = false
}