mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-08 12:28:54 +00:00
Update frontend/src/pages/pam/PamAccountsPage/components/PamAccessAccountModal.tsx
Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
This commit is contained in:
co-authored by
greptile-apps[bot]
parent
7fd9dc0aa5
commit
8866c98ff0
@@ -16,7 +16,7 @@ type Props = {
|
|||||||
|
|
||||||
export const PamAccessAccountModal = ({ isOpen, onOpenChange, account }: Props) => {
|
export const PamAccessAccountModal = ({ isOpen, onOpenChange, account }: Props) => {
|
||||||
const { protocol, hostname, port } = window.location;
|
const { protocol, hostname, port } = window.location;
|
||||||
const portSuffix = port && port !== "80" ? `:${port}` : "";
|
const portSuffix = port && port !== "80" && port !== "443" ? `:${port}` : "";
|
||||||
const siteURL = `${protocol}//${hostname}${portSuffix}`;
|
const siteURL = `${protocol}//${hostname}${portSuffix}`;
|
||||||
|
|
||||||
const [duration, setDuration] = useState("4h");
|
const [duration, setDuration] = useState("4h");
|
||||||
|
|||||||
Reference in New Issue
Block a user