Display Version when confirming changing priority
Before the GUI displayed when changing the priority:
"Change firmware e129c45b priority?"
It now displays:
"Change firmware v2.0-165-ge571670 priority?"
This is important since the user never sees the
image ID (e.g. e129c45b) and always sees the
image version (e.g. v2.0-165-ge571670).
Tested: confirmed text is correct and change priority works
Change-Id: Ie9403aaade8a307b6de54feef20adc2b04e2b80b
Signed-off-by: Gunnar Mills <gmills@us.ibm.com>
diff --git a/app/common/directives/firmware-list.js b/app/common/directives/firmware-list.js
index 781257e..69a8bdd 100644
--- a/app/common/directives/firmware-list.js
+++ b/app/common/directives/firmware-list.js
@@ -23,10 +23,10 @@
$scope.$parent.deleteImage(imageId);
}
- $scope.changePriority = function(imageId, from, to){
- $scope.$parent.changePriority(imageId, from, to);
+ $scope.changePriority = function(imageId, imageVersion, from, to){
+ $scope.$parent.changePriority(imageId, imageVersion, from, to);
}
}]
};
}]);
-})(window.angular);
\ No newline at end of file
+})(window.angular);