mirror of
https://github.com/clash-verge-rev/clash-verge-rev.git
synced 2026-01-29 17:15:38 +08:00
fix(ControllerViewer): remove isRestarting condition from button and input disabled states
This commit is contained in:
@@ -51,7 +51,7 @@
|
|||||||
- 添加了Zashboard的一键跳转URL
|
- 添加了Zashboard的一键跳转URL
|
||||||
- 使用操作系统默认的窗口管理器
|
- 使用操作系统默认的窗口管理器
|
||||||
- 切换、升级、重启内核的状态管理
|
- 切换、升级、重启内核的状态管理
|
||||||
- 增加了一键随机API端口和密钥/单独刷新按钮
|
- 增加了一键随机API端口和密钥/单独刷新按钮(待优化)
|
||||||
- 更精细化控制自动日志清理,新增1天选项。
|
- 更精细化控制自动日志清理,新增1天选项。
|
||||||
|
|
||||||
#### 优化了:
|
#### 优化了:
|
||||||
|
|||||||
@@ -199,7 +199,7 @@ export const ControllerViewer = forwardRef<DialogRef>((props, ref) => {
|
|||||||
size="small"
|
size="small"
|
||||||
onClick={handleGeneratePort}
|
onClick={handleGeneratePort}
|
||||||
color="primary"
|
color="primary"
|
||||||
disabled={autoGenerate || isSaving || isRestarting}
|
disabled={autoGenerate || isSaving }
|
||||||
>
|
>
|
||||||
<RefreshRounded fontSize="small" />
|
<RefreshRounded fontSize="small" />
|
||||||
</IconButton>
|
</IconButton>
|
||||||
@@ -213,7 +213,7 @@ export const ControllerViewer = forwardRef<DialogRef>((props, ref) => {
|
|||||||
value={controller}
|
value={controller}
|
||||||
placeholder="Required"
|
placeholder="Required"
|
||||||
onChange={(e) => setController(e.target.value)}
|
onChange={(e) => setController(e.target.value)}
|
||||||
disabled={autoGenerate || isSaving || isRestarting}
|
disabled={autoGenerate || isSaving }
|
||||||
/>
|
/>
|
||||||
{autoGenerate && (
|
{autoGenerate && (
|
||||||
<Tooltip title={t("Copy to clipboard")}>
|
<Tooltip title={t("Copy to clipboard")}>
|
||||||
@@ -221,7 +221,7 @@ export const ControllerViewer = forwardRef<DialogRef>((props, ref) => {
|
|||||||
size="small"
|
size="small"
|
||||||
onClick={() => handleCopyToClipboard(controller, "controller")}
|
onClick={() => handleCopyToClipboard(controller, "controller")}
|
||||||
color="primary"
|
color="primary"
|
||||||
disabled={isSaving || isRestarting}
|
disabled={isSaving }
|
||||||
>
|
>
|
||||||
<ContentCopy fontSize="small" />
|
<ContentCopy fontSize="small" />
|
||||||
</IconButton>
|
</IconButton>
|
||||||
@@ -238,7 +238,7 @@ export const ControllerViewer = forwardRef<DialogRef>((props, ref) => {
|
|||||||
size="small"
|
size="small"
|
||||||
onClick={handleGenerateSecret}
|
onClick={handleGenerateSecret}
|
||||||
color="primary"
|
color="primary"
|
||||||
disabled={autoGenerate || isSaving || isRestarting}
|
disabled={autoGenerate || isSaving }
|
||||||
>
|
>
|
||||||
<RefreshRounded fontSize="small" />
|
<RefreshRounded fontSize="small" />
|
||||||
</IconButton>
|
</IconButton>
|
||||||
@@ -254,7 +254,7 @@ export const ControllerViewer = forwardRef<DialogRef>((props, ref) => {
|
|||||||
onChange={(e) =>
|
onChange={(e) =>
|
||||||
setSecret(e.target.value?.replace(/[^\x00-\x7F]/g, ""))
|
setSecret(e.target.value?.replace(/[^\x00-\x7F]/g, ""))
|
||||||
}
|
}
|
||||||
disabled={autoGenerate || isSaving || isRestarting}
|
disabled={autoGenerate || isSaving }
|
||||||
/>
|
/>
|
||||||
{autoGenerate && (
|
{autoGenerate && (
|
||||||
<Tooltip title={t("Copy to clipboard")}>
|
<Tooltip title={t("Copy to clipboard")}>
|
||||||
@@ -262,7 +262,7 @@ export const ControllerViewer = forwardRef<DialogRef>((props, ref) => {
|
|||||||
size="small"
|
size="small"
|
||||||
onClick={() => handleCopyToClipboard(secret, "secret")}
|
onClick={() => handleCopyToClipboard(secret, "secret")}
|
||||||
color="primary"
|
color="primary"
|
||||||
disabled={isSaving || isRestarting}
|
disabled={isSaving }
|
||||||
>
|
>
|
||||||
<ContentCopy fontSize="small" />
|
<ContentCopy fontSize="small" />
|
||||||
</IconButton>
|
</IconButton>
|
||||||
@@ -286,7 +286,7 @@ export const ControllerViewer = forwardRef<DialogRef>((props, ref) => {
|
|||||||
checked={autoGenerate}
|
checked={autoGenerate}
|
||||||
onChange={() => setAutoGenerate(!autoGenerate)}
|
onChange={() => setAutoGenerate(!autoGenerate)}
|
||||||
color="primary"
|
color="primary"
|
||||||
disabled={isSaving || isRestarting}
|
disabled={isSaving }
|
||||||
/>
|
/>
|
||||||
}
|
}
|
||||||
label={autoGenerate ? t("On") : t("Off")}
|
label={autoGenerate ? t("On") : t("Off")}
|
||||||
|
|||||||
Reference in New Issue
Block a user