function recalculateValues() {
        // get flavor values
        getDisplayFlavors();
        recalculateFlavor();
        // get image values
        if (self.vmInEdition.flavor && flavorHasSpecificImages(self.vmInEdition.flavor.shortType)) {
          // filter for a specific flavor
          showImages(false, self.vmInEdition.flavor);
        } else {
          showImages(true);
        }
        recalculateImage();
        // get quota to be displayed
        getDisplayQuota();
        // get ssh keys to be displayed
        getDisplaySshKeys();
        recalculateSshKey();
        // recompute vm count
        recalculateVmCount();
        // get the recommended flavour if threshold is reached
        calculateRecommendedFlavour();
      }
/**
     *  To call when region model value change
     */
To call when region model value change
To call when region model value change
function recalculateValues() {
        getDisplayFlavors();
        recalculateFlavor();
        if (self.vmInEdition.flavor && flavorHasSpecificImages(self.vmInEdition.flavor.shortType)) {
          showImages(false, self.vmInEdition.flavor);
        } else {
          showImages(true);
        }
        recalculateImage();
        getDisplayQuota();
        getDisplaySshKeys();
        recalculateSshKey();
        recalculateVmCount();
        calculateRecommendedFlavour();
      }
function recalculateValues ( ) { getDisplayFlavors ( ) ; recalculateFlavor ( ) ; if ( self . vmInEdition . flavor && flavorHasSpecificImages ( self . vmInEdition . flavor . shortType ) ) { showImages ( false , self . vmInEdition . flavor ) ; } else { showImages ( true ) ; } recalculateImage ( ) ; getDisplayQuota ( ) ; getDisplaySshKeys ( ) ; recalculateSshKey ( ) ; recalculateVmCount ( ) ; calculateRecommendedFlavour ( ) ; }
To call when region model value change
To call when region model value change
// get flavor values // get image values // filter for a specific flavor // get quota to be displayed // get ssh keys to be displayed // recompute vm count // get the recommended flavour if threshold is reached