Skip to content

Commit cb84e84

Browse files
author
Jessica Wang
committed
CLOUDSTACK-3123: UI > Infrastructure menu > Secondary Storage > Cache Storage: implement detailView.
1 parent 9e2026a commit cb84e84

1 file changed

Lines changed: 30 additions & 45 deletions

File tree

‎ui/scripts/system.js‎

Lines changed: 30 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -6870,27 +6870,20 @@
68706870
args.response.error(parseXMLHttpResponse(json));
68716871
}
68726872
});
6873-
},
6873+
}
6874+
6875+
/*
6876+
,
68746877
detailView: {
6875-
updateContext: function (args) {
6876-
var zone;
6877-
6878-
$.ajax({
6879-
url: createURL('listZones'),
6880-
data: { id: args.context.secondarystorages[0].zoneid },
6881-
async: false,
6882-
success: function (json) {
6883-
zone = json.listzonesresponse.zone[0];
6884-
}
6885-
});
6886-
6887-
selectedZoneObj = zone;
6888-
6878+
updateContext: function (args) {
68896879
return {
6890-
zones: [zone]
6880+
zones: [{}]
68916881
};
6882+
68926883
}
68936884
}
6885+
*/
6886+
68946887
}
68956888
},
68966889
cacheStorage: {
@@ -6914,27 +6907,19 @@
69146907
args.response.error(parseXMLHttpResponse(json));
69156908
}
69166909
});
6917-
},
6910+
}
6911+
6912+
/*
6913+
,
69186914
detailView: {
6919-
updateContext: function (args) {
6920-
var zone;
6921-
6922-
$.ajax({
6923-
url: createURL('listZones'),
6924-
data: { id: args.context.secondarystorages[0].zoneid },
6925-
async: false,
6926-
success: function (json) {
6927-
zone = json.listzonesresponse.zone[0];
6928-
}
6929-
});
6930-
6931-
selectedZoneObj = zone;
6932-
6915+
updateContext: function (args) {
69336916
return {
6934-
zones: [zone]
6917+
zones: [{}]
69356918
};
69366919
}
69376920
}
6921+
*/
6922+
69386923
}
69396924
}
69406925
}
@@ -13378,9 +13363,9 @@
1337813363
}
1337913364
],
1338013365

13381-
dataProvider: function(args) {
13366+
dataProvider: function(args) {
1338213367
$.ajax({
13383-
url: createURL("listImageStores&id=" + args.context.secondarystorages[0].id),
13368+
url: createURL("listImageStores&id=" + args.context.secondaryStorage[0].id),
1338413369
dataType: "json",
1338513370
async: true,
1338613371
success: function(json) {
@@ -13597,19 +13582,19 @@
1359713582
}
1359813583
],
1359913584

13600-
dataProvider: function(args) {
13585+
dataProvider: function(args) {
1360113586
$.ajax({
13602-
url: createURL("listImageStores&id=" + args.context.secondarystorages[0].id),
13603-
dataType: "json",
13604-
async: true,
13605-
success: function(json) {
13606-
var item = json.listimagestoreresponse.imagestore[0];
13607-
args.response.success({
13608-
actionFilter: secondarystorageActionfilter,
13609-
data:item
13610-
});
13587+
url: createURL('listCacheStores'),
13588+
data: {
13589+
id: args.context.cacheStorage[0].id
13590+
},
13591+
async: false,
13592+
success: function (json) {
13593+
var item = json.listcachestoreresponse.imagestore[0];
13594+
args.response.success({ data: item });
13595+
1361113596
}
13612-
});
13597+
});
1361313598
}
1361413599
}
1361513600

0 commit comments

Comments
 (0)