@swiss-ai-hub/web 0.314.0 → 0.315.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -100,6 +100,7 @@ const route = useRoute()
|
|
|
100
100
|
const { t } = useI18n()
|
|
101
101
|
const toast = useToast()
|
|
102
102
|
const confirm = useConfirm()
|
|
103
|
+
const tenantPath = useTenantPath()
|
|
103
104
|
const { tenantId } = useTenant()
|
|
104
105
|
const { deleteAgentInstance, isDeleting } = useDeleteAgentInstance()
|
|
105
106
|
const { exportAgentInstance } = useExportAgentInstance()
|
|
@@ -122,6 +123,13 @@ function confirmDelete() {
|
|
|
122
123
|
|
|
123
124
|
async function handleDelete() {
|
|
124
125
|
try {
|
|
126
|
+
// When the deleted agent's own detail page is open, leave it first: the delete invalidates the
|
|
127
|
+
// instance query, and a still-mounted detail page would refetch the now-missing agent and raise
|
|
128
|
+
// a 404 error toast. Navigating away deactivates that query so it is only marked stale, not refetched.
|
|
129
|
+
if (isActive.value) {
|
|
130
|
+
await navigateTo(tenantPath('/service/agents'))
|
|
131
|
+
}
|
|
132
|
+
|
|
125
133
|
await deleteAgentInstance({
|
|
126
134
|
agentClass: props.agent.agent_class,
|
|
127
135
|
agentId: props.agent.agent_id,
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"license": "AGPL-3.0-or-later",
|
|
4
4
|
"author": "bbv Software Services AG (https://www.bbv.ch)",
|
|
5
5
|
"type": "module",
|
|
6
|
-
"version": "0.
|
|
6
|
+
"version": "0.315.1",
|
|
7
7
|
"description": "Swiss AI Hub - Admin & Management UI (Nuxt 3 layer)",
|
|
8
8
|
"main": "./nuxt.config.ts",
|
|
9
9
|
"repository": {
|