Commit be7b878d authored by Leigh B Stoller's avatar Leigh B Stoller

Do not show Save Parameters button if the profile project is not

enabled to use the new geni-lib and ppwizard.
parent c15cb297
......@@ -53,7 +53,7 @@ $(function ()
}
$('#rerun_button').attr("href", url);
if (_.has(record, "bindings")) {
if (_.has(record, "bindings") && record.cansave_parameters) {
$('#save_paramset_button')
.removeClass("hidden")
.popover({trigger: 'hover',
......
......@@ -2279,7 +2279,8 @@ $(function ()
return;
}
// Enable the Save Params button.
if (expinfo.profile_uuid != "unknown") {
if (expinfo.profile_uuid != "unknown" &&
window.APT_OPTIONS.cansave_parameters) {
$('#save_paramset_button')
.removeClass("hidden")
.popover({trigger: 'hover',
......
......@@ -102,6 +102,7 @@ function Do_HistoryRecord()
}
$webtask->Delete();
}
$blob["cansave_parameters"] = $profile->UseNewGeniLib() ? 1 : 0;
}
# Need to munge the urls since these slices are history.
foreach ($blob["slivers"] as &$sliver) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment