Skip to content

Commit

Permalink
tweak community repos
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnDuprey committed Feb 7, 2025
1 parent ffdb671 commit 7e2061a
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 5 deletions.
1 change: 1 addition & 0 deletions src/components/CippComponents/CippTranslations.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,4 +45,5 @@ export const CippTranslations = {
storageUsedInBytes: "Storage Used",
prohibitSendReceiveQuotaInBytes: "Quota",
ClientId: "Client ID",
html_url: "URL",
};
5 changes: 5 additions & 0 deletions src/layouts/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -441,6 +441,11 @@ export const nativeMenuItems = [
path: "/tools/templatelib",
roles: ["editor", "admin", "superadmin"],
},
{
title: "Community Repositories",
path: "/tools/community-repos",
roles: ["editor", "admin", "superadmin"],
},
{
title: "Scheduler",
path: "/cipp/scheduler",
Expand Down
10 changes: 5 additions & 5 deletions src/pages/tools/community-repos/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,11 @@ const Page = () => {
const [user, setUser] = useState("");

const actions = [
{
label: "View Templates",
link: "/tools/community-repos/repo?name=[FullName]",
icon: <OpenInNew />,
},
{
label: "Delete",
type: "POST",
Expand All @@ -48,11 +53,6 @@ const Page = () => {
icon: <TrashIcon />,
queryKey: "CommunityRepos",
},
{
label: "View Templates",
link: "/tools/community-repos/repo?name=[FullName]",
icon: <OpenInNew />,
},
];

const offCanvas = {
Expand Down
13 changes: 13 additions & 0 deletions src/pages/tools/community-repos/repo.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,19 @@ const Page = () => {
hideBulk: true,
},
]}
isFetching={searchMutation.isPending}
refreshFunction={() =>
searchMutation.mutate({
url: "/api/ExecGitHubAction",
data: {
Search: {
Repository: [name],
Type: "code",
Language: "json",
},
},
})
}
/>
<Dialog
fullWidth
Expand Down

0 comments on commit 7e2061a

Please sign in to comment.