Merge pull request #3608 from rommapp/claude/github-issue-3598-nu61ay

fix(v2): correct route name when navigating after platform/collection delete
This commit is contained in:
Georges-Antoine Assi
2026-06-25 20:46:49 -04:00
committed by GitHub
2 changed files with 3 additions and 2 deletions

View File

@@ -18,6 +18,7 @@ import { RDivider, type RTabNavItem } from "@v2/lib";
import { computed, nextTick, onMounted, ref, watch } from "vue";
import { useI18n } from "vue-i18n";
import { onBeforeRouteUpdate, useRoute, useRouter } from "vue-router";
import { ROUTES } from "@/plugins/router";
import collectionApi from "@/services/api/collection";
import storeAuth from "@/stores/auth";
import storeCollections, {
@@ -267,7 +268,7 @@ async function onDelete() {
snackbar.success(`Collection "${c.name}" deleted`, {
icon: "mdi-check-bold",
});
router.push({ name: "collections" });
router.push({ name: ROUTES.COLLECTIONS_INDEX });
} catch (err) {
const e = err as {
response?: { data?: { msg?: string; detail?: string } };

View File

@@ -372,7 +372,7 @@ async function onDelete() {
snackbar.success(`Platform "${p.display_name}" deleted`, {
icon: "mdi-check-bold",
});
router.push({ name: "platforms" });
router.push({ name: ROUTES.PLATFORMS_INDEX });
} catch (err) {
const e = err as {
response?: { data?: { msg?: string } };