File tree Expand file tree Collapse file tree 3 files changed +12
-1
lines changed Expand file tree Collapse file tree 3 files changed +12
-1
lines changed Original file line number Diff line number Diff line change 1+ --- 
2+ " @sapcc/limes-ui "  : patch 
3+ --- 
4+ 
5+ Remove forbid autogrowth setting for resources that are not committable and don't have remaining commitments"
Original file line number Diff line number Diff line change @@ -170,7 +170,7 @@ const Resource = (props) => {
170170          { isAZUnaware ( props . resource . per_az )  &&  ( 
171171            < ProjectBadges  az = { props . resource . per_az [ 0 ] }  unit = { unitName }  displayValues = { true }  /> 
172172          ) } 
173-           { scope . isProject ( )  &&  < ForbidAutogrowth  { ...forbidAutogrowthForwardProps }  /> } 
173+           { scope . isProject ( )  &&  editableResource   &&   < ForbidAutogrowth  { ...forbidAutogrowthForwardProps }  /> } 
174174        </ Stack > 
175175      ) } 
176176      < ResourceBarBuilder 
Original file line number Diff line number Diff line change @@ -104,6 +104,12 @@ const ForbidAutogrowth = (props) => {
104104        ) } 
105105        < p  data-testid = "forbidAutogrowthConfirmText" > 
106106          Do you want to < strong > { autogrowthForbidden  ? "disable"  : "enable" } </ strong >  Pay-As-You-Go?
107+           { autogrowthForbidden  &&  ( 
108+             < div  className = "text-sm mt-2" > 
109+               Disabling will limit your available quota to either your existing commitments or your current usage,
110+               whichever value is greater. Changes to this setting typically take around 15 minutes to take effect.
111+             </ div > 
112+           ) } 
107113        </ p > 
108114      </ Modal > 
109115    </ > 
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments