small fix
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
import { app, shell, BrowserWindow, ipcMain } from "electron";
|
import { app, shell, BrowserWindow } from "electron";
|
||||||
import { join } from "path";
|
import { join } from "path";
|
||||||
import { electronApp, optimizer, is } from "@electron-toolkit/utils";
|
import { electronApp, optimizer, is } from "@electron-toolkit/utils";
|
||||||
import { registerIpcHandlers } from "./ipc-handlers";
|
import { registerIpcHandlers } from "./ipc-handlers";
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
* Displays app configuration details with file management and deploy functionality.
|
* Displays app configuration details with file management and deploy functionality.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import React, { useCallback, useEffect, useState } from "react";
|
import React, { useCallback, useEffect, useRef, useState } from "react";
|
||||||
import { useTranslation } from "react-i18next";
|
import { useTranslation } from "react-i18next";
|
||||||
import { Spin, Tag, Space, App as AntApp, Tooltip, Badge } from "antd";
|
import { Spin, Tag, Space, App as AntApp, Tooltip, Badge } from "antd";
|
||||||
import { Button, Empty } from "@lobehub/ui";
|
import { Button, Empty } from "@lobehub/ui";
|
||||||
|
|||||||
@@ -150,7 +150,7 @@ const DomainManager: React.FC<DomainManagerProps> = ({ collapsed = false, onTogg
|
|||||||
<div className={styles.collapsedName}>{currentDomain.name}</div>
|
<div className={styles.collapsedName}>{currentDomain.name}</div>
|
||||||
<div className={styles.collapsedDesc}>
|
<div className={styles.collapsedDesc}>
|
||||||
{currentDomain.username} ·{" "}
|
{currentDomain.username} ·{" "}
|
||||||
<a target="_blank" href={"https://" + currentDomain.domain}>
|
<a target="_blank" rel="noreferrer" href={"https://" + currentDomain.domain} onClick={(e) => e.stopPropagation()}>
|
||||||
{currentDomain.domain}
|
{currentDomain.domain}
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -335,7 +335,7 @@ export const useFileChangeStore = create<FileChangeState>()(
|
|||||||
hasRemoteChange: (domainId, appId, currentRevision) => {
|
hasRemoteChange: (domainId, appId, currentRevision) => {
|
||||||
const key = appKey(domainId, appId);
|
const key = appKey(domainId, appId);
|
||||||
const storedRevision = get().appFiles[key]?.serverRevision;
|
const storedRevision = get().appFiles[key]?.serverRevision;
|
||||||
if (storedRevision === null) return false;
|
if (storedRevision == null) return false;
|
||||||
return storedRevision !== currentRevision;
|
return storedRevision !== currentRevision;
|
||||||
},
|
},
|
||||||
}),
|
}),
|
||||||
|
|||||||
Reference in New Issue
Block a user