mirror of
https://github.com/goharbor/harbor
synced 2025-04-20 22:33:59 +00: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.
|
//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.
|
||||||
|
|
|
@ -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);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user