@@ -48,7 +48,7 @@ const ResourceInfo = (props) => {
4848      infos . push ( getPaygInfo ( ) ) ; 
4949    } 
5050    if  ( ! scope . isCluster ( ) )  { 
51-       infos . push ( getBaseQuotaInfo ( ) ) ; 
51+       infos . push ( ... getBaseQuotaInfo ( ) ) ; 
5252    } 
5353    infos . push ( ...getNegativeRemainingQuotaInfo ( ) ) ; 
5454
@@ -82,8 +82,15 @@ const ResourceInfo = (props) => {
8282
8383  function  getBaseQuotaInfo ( )  { 
8484    const  baseQuotaAZ  =  locateBaseQuotaAZ ( resource ) ; 
85-     if  ( ! baseQuotaAZ )  return ; 
86-     return  BaseQuotaLabels . AVAILABLE ( unit . format ( baseQuotaAZ . quota ) ,  az ) ; 
85+     const  sections  =  [ ] ; 
86+     if  ( ! baseQuotaAZ )  return  sections ; 
87+     const  totalQuota  =  unit . format ( resource . quota ) ; 
88+     const  remainingBaseQuota  =  unit . format ( baseQuotaAZ . quota ) ; 
89+     const  deductedBaseQuota  =  unit . format ( resource . quota  -  baseQuotaAZ . quota ) ; 
90+     ! az  &&  sections . push ( BaseQuotaLabels . REMAINING ( {  totalQuota,  remainingBaseQuota,  deductedBaseQuota } ) ) ; 
91+     ! az  &&  sections . push ( BaseQuotaLabels . BASEINFO ) ; 
92+     az  &&  az . name  !=  CustomZones . UNKNOWN  &&  sections . push ( BaseQuotaLabels . AZINFO ( az ) ) ; 
93+     return  sections ; 
8794  } 
8895
8996  function  getNegativeRemainingQuotaInfo ( )  { 
@@ -108,7 +115,7 @@ const ResourceInfo = (props) => {
108115  return  ( 
109116    < IntroBox  className = "my-1 text-sm" > 
110117      { resourceInfos . map ( ( info ,  index )  =>  ( 
111-         < p  key = { index } > { info } </ p > 
118+         < div  key = { index } > { info } </ div > 
112119      ) ) } 
113120    </ IntroBox > 
114121  ) ; 
0 commit comments