Web: Portal settings: disabled login history for startup plan

This commit is contained in:
Nikita Gopienko 2023-01-23 13:33:02 +03:00
parent 0f971fc5d3
commit 49dfc6b8dd

View File

@ -20,6 +20,7 @@ const LoginHistory = (props) => {
getLifetimeAuditSettings,
setLifetimeAuditSettings,
securityLifetime,
isAuditAvailable,
} = props;
useEffect(() => {
@ -73,6 +74,7 @@ const LoginHistory = (props) => {
content={getContent()}
downloadReport={t("DownloadReportBtn")}
getReport={getLoginHistoryReport}
isSettingNotPaid={!isAuditAvailable}
/>
)}
</>
@ -91,6 +93,8 @@ export default inject(({ setup, auth }) => {
} = setup;
const { theme } = auth.settingsStore;
const { isAuditAvailable } = auth.currentQuotaStore;
return {
getLoginHistory,
getLifetimeAuditSettings,
@ -100,5 +104,6 @@ export default inject(({ setup, auth }) => {
theme,
viewAs,
getLoginHistoryReport,
isAuditAvailable,
};
})(withTranslation("Settings")(withRouter(LoginHistory)));