diff --git a/src/components/events/partials/ModalTabsAndPages/DetailsTobiraTab.tsx b/src/components/events/partials/ModalTabsAndPages/DetailsTobiraTab.tsx index 8c9a3c11b7..47cdd1edc5 100644 --- a/src/components/events/partials/ModalTabsAndPages/DetailsTobiraTab.tsx +++ b/src/components/events/partials/ModalTabsAndPages/DetailsTobiraTab.tsx @@ -9,8 +9,10 @@ import { Formik } from "formik"; import { useState } from "react"; import EventDetailsTabHierarchyNavigation from "./EventDetailsTabHierarchyNavigation"; import NewTobiraPage, { TobiraFormProps } from "./NewTobiraPage"; -import { fetchSeriesDetailsTobira, setTobiraTabHierarchy, TobiraData, updateSeriesTobiraPath } from "../../../../slices/seriesDetailsSlice"; +import { fetchSeriesDetailsTobira, removeSeriesTobiraPath, setTobiraTabHierarchy, TobiraData, updateSeriesTobiraPath } from "../../../../slices/seriesDetailsSlice"; import { fetchSeriesDetailsTobiraNew, TobiraPage } from "../../../../slices/seriesSlice"; +import ConfirmModal from "../../../shared/ConfirmModal"; +import { Tooltip } from "../../../shared/Tooltip"; export type TobiraTabHierarchy = "main" | "edit-path"; @@ -92,6 +94,13 @@ const DetailsTobiraTab = ({ kind, id }: DetailsTobiraTabProps) => { dispatch(setTobiraTabHierarchy("main")); }; + const handleDelete = async (hostPage: TobiraPage) => { + await dispatch(removeSeriesTobiraPath({ + seriesId: id, + currentPath: hostPage.path, + })).then(() => dispatch(fetchSeriesDetailsTobira(id))) + } + const openSubTab = async (tabType: TobiraTabHierarchy, currentPage?: TobiraPage) => { if (!!currentPage) { const breadcrumbs = getBreadcrumbs(currentPage); @@ -139,16 +148,13 @@ const DetailsTobiraTab = ({ kind, id }: DetailsTobiraTabProps) => { {kind === "series" &&
{t("EVENTS.SERIES.DETAILS.TOBIRA.DESCRIPTION")}
{t("EVENTS.SERIES.NEW.TOBIRA.DESCRIPTION")}
{t("EVENTS.SERIES.NEW.TOBIRA.DIRECT_LINK")}
- + {t("CONFIRMATIONS.METADATA.NOTICE." + resourceType)}