mirror of
https://github.com/grafana/grafana.git
synced 2026-09-05 04:40:13 -05:00
Authentication UI: Hide empty settings section (#67407)
This commit is contained in:
@@ -100,9 +100,9 @@ export const AuthConfigPageUnconnected = ({
|
|||||||
))}
|
))}
|
||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
<div className={styles.settingsSection}>
|
{!isEmpty(authSettings) && (
|
||||||
<h3>Settings</h3>
|
<div className={styles.settingsSection}>
|
||||||
{authSettings && (
|
<h3>Settings</h3>
|
||||||
<table className="filter-table">
|
<table className="filter-table">
|
||||||
<tbody>
|
<tbody>
|
||||||
{Object.entries(authSettings).map(([sectionName, sectionSettings], i) => (
|
{Object.entries(authSettings).map(([sectionName, sectionSettings], i) => (
|
||||||
@@ -121,8 +121,8 @@ export const AuthConfigPageUnconnected = ({
|
|||||||
))}
|
))}
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
)}
|
</div>
|
||||||
</div>
|
)}
|
||||||
</Page.Contents>
|
</Page.Contents>
|
||||||
</Page>
|
</Page>
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user