Web: Portal settings: disabled login history for startup plan
This commit is contained in:
parent
0f971fc5d3
commit
49dfc6b8dd
@ -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)));
|
||||
|
Loading…
Reference in New Issue
Block a user