Skip to content

Commit 1c9a34a

Browse files
committed
explicit Dedication - Pod action filter for release/dedicate action items
1 parent fd72c12 commit 1c9a34a

1 file changed

Lines changed: 14 additions & 1 deletion

File tree

‎ui/scripts/system.js‎

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12763,8 +12763,21 @@
1276312763
var podActionfilter = function(args) {
1276412764
var podObj = args.context.item;
1276512765
var allowedActions = [];
12766+
12767+
$.ajax({
12768+
url:createURL("listDedicatedPods&podId=" + args.context.pods[0].id),
12769+
success:function(json){
12770+
if(json.listdedicatedpodsresponse.dedicatedpod != undefined){
12771+
var dedicatedPodObj = json.listdedicatedpodsresponse.dedicatedpod[0];
12772+
if(dedicatedPodObj.domainid != null)
12773+
allowedActions.push("release");
12774+
}
12775+
else
12776+
allowedActions.push("dedicate");
12777+
}
12778+
});
12779+
1276612780
allowedActions.push("edit");
12767-
allowedActions.push("dedicate");
1276812781
if(podObj.allocationstate == "Disabled")
1276912782
allowedActions.push("enable");
1277012783
else if(podObj.allocationstate == "Enabled")

0 commit comments

Comments
 (0)