This commit is contained in:
parent
2cb7353e6a
commit
76478e6835
|
|
@ -485,12 +485,12 @@ export function DetailPageHeader({ data }: { data: any }) {
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<div className="flex items-center gap-[5px] self-end">
|
||||||
{statusLoaded && (currentStatus === "running" || currentStatus === "stopped") && (
|
{statusLoaded && (currentStatus === "running" || currentStatus === "stopped") && (
|
||||||
<button
|
<button
|
||||||
onClick={handleSwitchStatus}
|
onClick={handleSwitchStatus}
|
||||||
disabled={switchLoading || loading}
|
disabled={switchLoading || loading}
|
||||||
className="hover:text-gray-700 transition self-end mr-2 text-sm border border-gray-300 rounded px-2 py-1 bg-white"
|
className="hover:text-gray-700 transition self-end text-sm border border-gray-300 rounded px-2 py-1 bg-white"
|
||||||
title={currentStatus === "running" ? "停止运行" : "启动运行"}
|
title={currentStatus === "running" ? "停止运行" : "启动运行"}
|
||||||
>
|
>
|
||||||
{switchLoading
|
{switchLoading
|
||||||
|
|
@ -501,8 +501,6 @@ export function DetailPageHeader({ data }: { data: any }) {
|
||||||
</button>
|
</button>
|
||||||
)}
|
)}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
{statusLoaded && showDelete && (
|
{statusLoaded && showDelete && (
|
||||||
<button
|
<button
|
||||||
onClick={handleDelete}
|
onClick={handleDelete}
|
||||||
|
|
@ -514,6 +512,8 @@ export function DetailPageHeader({ data }: { data: any }) {
|
||||||
</button>
|
</button>
|
||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{showProgressBar && (progress !== "0%" || statusText) && (
|
{showProgressBar && (progress !== "0%" || statusText) && (
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue