mirror of
https://github.com/goharbor/harbor.git
synced 2025-01-10 18:07:42 +01:00
Updates for changing JSON attribute name.
This commit is contained in:
parent
e367ec24a8
commit
51a23baeea
@ -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.
|
||||
|
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user