Skip to content

Commit

Permalink
add import template button
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnDuprey committed Feb 12, 2025
1 parent 211e379 commit 8e622cf
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions src/pages/tools/community-repos/repo.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ import CippJSONView from "/src/components/CippFormPages/CippJSONView";
import { EyeIcon } from "@heroicons/react/24/outline";
import { CippAutoComplete } from "/src/components/CippComponents/CippAutocomplete";
import React from "react";
import { CloudDownload } from "@mui/icons-material";

const Page = () => {
const router = useRouter();
Expand Down Expand Up @@ -202,6 +203,19 @@ const Page = () => {
icon: <EyeIcon />,
hideBulk: true,
},
{
label: "Import Template",
url: "/api/ExecCommunityRepo",
icon: <CloudDownload />,
type: "POST",
data: {
Action: "ImportTemplate",
FullName: selectedRepo,
Path: "path",
Branch: selectedBranch,
},
confirmText: "Are you sure you want to import [path]?",
},
]}
isFetching={fileTreeQuery.isFetching}
refreshFunction={() => fetchFileTree(selectedBranch)}
Expand Down

0 comments on commit 8e622cf

Please sign in to comment.