diff --git a/src/app.tsx b/src/app.tsx index 23be4448..70416d16 100644 --- a/src/app.tsx +++ b/src/app.tsx @@ -143,6 +143,7 @@ export function App() { onViewDetails={handleCertificateViewerDialogOpen} loading={!fetching.certificates || fetching.certificates === "pending"} highlightedText={searchedText} + isLoggedIn={isCurrentProviderLogedin} /> ["className"]; highlightedText?: string; loading?: boolean; + isLoggedIn: boolean; } export const CertificatesList: React.FunctionComponent< @@ -69,6 +70,7 @@ export const CertificatesList: React.FunctionComponent< currentSortDir, highlightedText, loading, + isLoggedIn, onSort, onViewDetails, onDelete, @@ -252,6 +254,7 @@ export const CertificatesList: React.FunctionComponent< } size="small" className={styles.action_icon_button} + disabled={!isLoggedIn} > diff --git a/src/components/certificates-list/styles/index.module.scss b/src/components/certificates-list/styles/index.module.scss index 1bbe5a0a..a6e35603 100644 --- a/src/components/certificates-list/styles/index.module.scss +++ b/src/components/certificates-list/styles/index.module.scss @@ -37,7 +37,7 @@ margin-right: var(--pv-size-base-2); } - .action_icon_button { + .action_icon_button:not(:disabled) { color: var(--pv-color-gray-10); } }