Updates for changing JSON attribute name.

This commit is contained in:
kunw 2016-11-16 14:35:10 +08:00
parent e367ec24a8
commit 51a23baeea
2 changed files with 2 additions and 2 deletions

View File

@ -21,7 +21,7 @@ const harborStoragePath = "/harbor_storage"
//SystemInfo models for system info. //SystemInfo models for system info.
type SystemInfo struct { type SystemInfo struct {
HarborStorage Storage `json:"harbor_storage"` HarborStorage Storage `json:"storage"`
} }
//Storage models for storage. //Storage models for storage.

View File

@ -70,7 +70,7 @@
function getVolumeInfoSuccess(response) { function getVolumeInfoSuccess(response) {
var storage = response.data; var storage = response.data;
vm.modalMessage += '<br/>' + $filter('tr')('current_storage', vm.modalMessage += '<br/>' + $filter('tr')('current_storage',
[toGigaBytes(storage['harbor_storage']['free']), toGigaBytes(storage['harbor_storage']['total'])]); [toGigaBytes(storage['storage']['free']), toGigaBytes(storage['storage']['total'])]);
$scope.$emit('modalMessage', vm.modalMessage); $scope.$emit('modalMessage', vm.modalMessage);
$scope.$emit('raiseInfo', raiseInfo); $scope.$emit('raiseInfo', raiseInfo);