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