This commit is contained in:
parent
51229b80c2
commit
073b0b108e
|
|
@ -720,9 +720,10 @@ export function DetailPageHeader({ data }: { data: any }) {
|
||||||
<div className="mt-4 mb-1 px-6 lg:px-8 w-11/12 lg:w-2/3 xl:w-3/5 mx-auto">
|
<div className="mt-4 mb-1 px-6 lg:px-8 w-11/12 lg:w-2/3 xl:w-3/5 mx-auto">
|
||||||
<div className="flex items-start space-x-6">
|
<div className="flex items-start space-x-6">
|
||||||
<button
|
<button
|
||||||
className="group flex items-center justify-center w-24 h-24 md:w-32 md:h-32 border transition"
|
// className="group flex items-center justify-center w-24 h-24 md:w-32 md:h-32 border transition"
|
||||||
|
className={`group flex items-center justify-center w-24 h-24 md:w-32 md:h-32 border transition ${(!data?.model_parameter) ? 'opacity-50 cursor-not-allowed' : ''}`}
|
||||||
onClick={() => handleClick("icon")}
|
onClick={() => handleClick("icon")}
|
||||||
disabled={loading || !canDeploy}
|
disabled={loading || !canDeploy || !data?.model_parameter}
|
||||||
>
|
>
|
||||||
{isImagePath ? (
|
{isImagePath ? (
|
||||||
<img
|
<img
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue