@@ -106,16 +106,18 @@ export function DeawerCustomBreadcrumb({
106106// Deploy Model
107107function DrawerBreadCrumbNavigation ( {
108108 items : data ,
109+ showMinimizeButton,
109110} : {
110111 items : string [ ] ;
112+ showMinimizeButton ?: boolean ;
111113} ) {
112114 const { closeDrawer, setCancelAlert, step, minimizeProcess } = useDrawer ( ) ;
113115 const { currentWorkflow } = useDeployModel ( ) ;
114116 return (
115117 < div
116118 className = " ant-header-breadcrumb"
117119 >
118- < div className = "flex items-center gap-2" >
120+ < div className = "flex items-center gap-2 mr-4 " >
119121 < button onClick = { ( e ) => {
120122 e . preventDefault ( ) ;
121123 e . stopPropagation ( ) ;
@@ -129,7 +131,8 @@ function DrawerBreadCrumbNavigation({
129131 < path fillRule = "evenodd" clipRule = "evenodd" d = "M13.8103 5.09188C14.0601 4.8421 14.0601 4.43712 13.8103 4.18734C13.5606 3.93755 13.1556 3.93755 12.9058 4.18734L8.99884 8.0943L5.09188 4.18734C4.8421 3.93755 4.43712 3.93755 4.18734 4.18734C3.93755 4.43712 3.93755 4.8421 4.18734 5.09188L8.0943 8.99884L4.18734 12.9058C3.93755 13.1556 3.93755 13.5606 4.18734 13.8103C4.43712 14.0601 4.8421 14.0601 5.09188 13.8103L8.99884 9.90338L12.9058 13.8103C13.1556 14.0601 13.5606 14.0601 13.8103 13.8103C14.0601 13.5606 14.0601 13.1556 13.8103 12.9058L9.90338 8.99884L13.8103 5.09188Z" fill = "#B3B3B3" />
130132 </ svg >
131133 </ button >
132- < button onClick = { ( ) => {
134+ { showMinimizeButton && (
135+ < button onClick = { ( ) => {
133136 if ( ! currentWorkflow ) {
134137 return closeDrawer ( ) ;
135138 } ;
@@ -138,10 +141,11 @@ function DrawerBreadCrumbNavigation({
138141 ...step ,
139142 } )
140143 } } >
141- < svg width = "18" height = "18" viewBox = "0 0 18 18" fill = "none" xmlns = "http://www.w3.org/2000/svg" className = "hover:text-[#FFFFFF] mr-4 " >
144+ < svg width = "18" height = "18" viewBox = "0 0 18 18" fill = "none" xmlns = "http://www.w3.org/2000/svg" className = "hover:text-[#FFFFFF] " >
142145 < path fillRule = "evenodd" clipRule = "evenodd" d = "M15.5654 14.748C16.104 15.2866 15.2856 16.1044 14.747 15.5665L11.1293 11.9481V13.9429C11.1293 14.7044 9.972 14.7044 9.972 13.9429L9.9727 10.5517C9.9727 10.2325 10.2322 9.97302 10.5514 9.97302H13.9433C14.7048 9.97302 14.7048 11.1304 13.9433 11.1304L11.9478 11.1297L15.5654 14.748ZM7.6123 4.79945C7.6123 4.03796 8.76965 4.03796 8.76965 4.79945V8.19137C8.76965 8.51058 8.5102 8.77003 8.19099 8.77003L4.79907 8.76933C4.03758 8.76933 4.03758 7.61198 4.79907 7.61198H6.79383L3.17619 3.99434C2.63759 3.45574 3.45603 2.638 3.99463 3.1759L7.61227 6.79354L7.6123 4.79945Z" fill = "#B3B3B3" />
143146 </ svg >
144147 </ button >
148+ ) }
145149 </ div >
146150 < DeawerCustomBreadcrumb data = { data } />
147151 </ div >
0 commit comments