mirror of
https://github.com/router-for-me/Cli-Proxy-API-Management-Center.git
synced 2026-02-19 19:20:49 +08:00
fix
This commit is contained in:
@@ -281,6 +281,8 @@ export function ConfigPage() {
|
|||||||
return t('config_management.status_loaded');
|
return t('config_management.status_loaded');
|
||||||
};
|
};
|
||||||
|
|
||||||
|
const isLoadedStatus = !disableControls && !loading && !error && !saving && !isDirty;
|
||||||
|
|
||||||
const getStatusClass = () => {
|
const getStatusClass = () => {
|
||||||
if (error) return styles.error;
|
if (error) return styles.error;
|
||||||
if (isDirty) return styles.modified;
|
if (isDirty) return styles.modified;
|
||||||
@@ -444,9 +446,11 @@ export function ConfigPage() {
|
|||||||
|
|
||||||
{/* Controls */}
|
{/* Controls */}
|
||||||
<div className={styles.controls}>
|
<div className={styles.controls}>
|
||||||
<span className={`${styles.status} ${getStatusClass()}`}>
|
{!isLoadedStatus && (
|
||||||
{getStatusText()}
|
<span className={`${styles.status} ${getStatusClass()}`}>
|
||||||
</span>
|
{getStatusText()}
|
||||||
|
</span>
|
||||||
|
)}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</Card>
|
</Card>
|
||||||
|
|||||||
Reference in New Issue
Block a user