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.
type SystemInfo struct {
HarborStorage Storage `json:"harbor_storage"`
HarborStorage Storage `json:"storage"`
}
//Storage models for storage.

View File

@ -70,7 +70,7 @@
function getVolumeInfoSuccess(response) {
var storage = response.data;
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('raiseInfo', raiseInfo);