Skip to content

Commit

Permalink
Merge pull request PelicanPlatform#1253 from haoming29/add-swagger-link
Browse files Browse the repository at this point in the history
Add link to OpenAPI page on the UI
  • Loading branch information
haoming29 authored May 29, 2024
2 parents 9014830 + 40383ea commit dcc0df5
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions web_ui/frontend/components/layout/Sidebar/SpeedDial.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

import React, {ReactNode, useState} from "react";
import {Box, BoxProps, Button, Grow, IconButton, Paper, Tooltip} from "@mui/material";
import Link from "next/link";
import {BugReport, Description, HelpOutline} from "@mui/icons-material";
import Link from '@mui/material/Link';
import {BugReport, Description, HelpOutline, Api} from "@mui/icons-material";
import GitHubIcon from "@mui/icons-material/GitHub";
import {ClickAwayListener} from "@mui/base";

Expand Down Expand Up @@ -39,7 +39,7 @@ const SpeedDialButton = ({open, order, icon, title, onClick, href, boxProps} : S
<Tooltip title={title} arrow>
<Paper elevation={2} sx={{ borderRadius: "50%", bgcolor: "#ffffff00"}}>
{ href != undefined ?
<Link href={href} rel={"noopener noreferrer"} target={"_blank"}>
<Link href={href} underline="none" rel={"noopener noreferrer"} target={"_blank"}>
<IconButton sx={{bgcolor: "primary.light", "&:hover": {bgcolor: "white"}}}>
{icon}
</IconButton>
Expand Down Expand Up @@ -67,6 +67,11 @@ const PelicanSpeedDial = () => {
title: 'Documentation',
href: "https://docs.pelicanplatform.org"
},
{
icon: <Api/>,
title: 'Pelican Server API',
href: "/api/v1.0/docs"
},
{
icon: <GitHubIcon/>,
title: 'Github',
Expand Down

0 comments on commit dcc0df5

Please sign in to comment.