Skip to content

Commit

Permalink
cassproject/cass-viewer#4 Disabled caring about collapse.
Browse files Browse the repository at this point in the history
  • Loading branch information
Lomilar committed Oct 18, 2018
1 parent 428d274 commit d5f6489
Showing 1 changed file with 16 additions and 16 deletions.
32 changes: 16 additions & 16 deletions js/cass-ui-fwk-aln/cui-fa-main.js
Original file line number Diff line number Diff line change
Expand Up @@ -3207,16 +3207,16 @@ function generateFrameworkCompetencyData() {
function handleCollapseFramework2ForAlignmentSuccess(frameworkId, fnpg) {
debugMessage("Framework 2 collapsed:" + frameworkId);
debugMessage(fnpg);
if (!frameworkCollapsedCorrectly(fnpg)) {
showPageError("Could not determine framework competencies (" + framework2Name + "). Check framework permissions.");
}
else if (doesFrameworkHaveCircularDependency(fnpg)) {
showPageError("Framework (" + framework2Name + ") contains a circular dependency. Cannot align.");
}
else {
// if (!frameworkCollapsedCorrectly(fnpg)) {
// showPageError("Could not determine framework competencies (" + framework2Name + "). Check framework permissions.");
// }
// else if (doesFrameworkHaveCircularDependency(fnpg)) {
// showPageError("Framework (" + framework2Name + ") contains a circular dependency. Cannot align.");
// }
// else {
framework2PacketGraph = fnpg;
generateFrameworkCompetencyData();
}
// }
}

function handleCollapseFramework2ForAlignmentFailure(err) {
Expand All @@ -3238,16 +3238,16 @@ function collapseFramework2ForAlignment() {
function handleCollapseFramework1ForAlignmentSuccess(frameworkId, fnpg) {
debugMessage("Framework 1 collapsed:" + frameworkId);
debugMessage(fnpg);
if (!frameworkCollapsedCorrectly(fnpg)) {
showPageError("Could not determine framework competencies (" + framework1Name + "). Check framework permissions.");
}
else if (doesFrameworkHaveCircularDependency(fnpg)) {
showPageError("Framework (" + framework1Name + ") contains a circular dependency. Can not align.");
}
else {
// if (!frameworkCollapsedCorrectly(fnpg)) {
// showPageError("Could not determine framework competencies (" + framework1Name + "). Check framework permissions.");
// }
// else if (doesFrameworkHaveCircularDependency(fnpg)) {
// showPageError("Framework (" + framework1Name + ") contains a circular dependency. Can not align.");
// }
// else {
framework1PacketGraph = fnpg;
collapseFramework2ForAlignment();
}
// }
}

function handleCollapseFramework1ForAlignmentFailure(err) {
Expand Down

0 comments on commit d5f6489

Please sign in to comment.