Skip to content
Snippets Groups Projects
Commit a4bfaa60 authored by juanf's avatar juanf
Browse files

SSDM-3212 : Retire plate view

SVN: 35749
parent 07c531eb
No related branches found
No related tags found
No related merge requests found
...@@ -34,8 +34,16 @@ $.extend(NexusProfile.prototype, StandardProfile.prototype, { ...@@ -34,8 +34,16 @@ $.extend(NexusProfile.prototype, StandardProfile.prototype, {
mainController.serverFacade.customELNApi({ mainController.serverFacade.customELNApi({
"plate_identifier" : plate_identifier, "plate_identifier" : plate_identifier,
"expiry_date" : expiry_date "expiry_date" : expiry_date
}, function(result) { }, function(error, result) {
Util.unblockUI(); if(!error) {
Util.showSuccess("Plate Retired", function() {
Util.unblockUI();
});
} else {
Util.showError(error, function() {
Util.unblockUI();
});
}
}, "plate_version_service"); }, "plate_version_service");
} }
var $retireButton = FormUtil.getButtonWithText("Retire Plate!", retireAction, "btn-warning"); var $retireButton = FormUtil.getButtonWithText("Retire Plate!", retireAction, "btn-warning");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment