Skip to content

Commit

Permalink
Merge branch 'master' into prototype/windows-dsc
Browse files Browse the repository at this point in the history
  • Loading branch information
Normation GIT merger committed Jun 19, 2017
2 parents 1196033 + ecb10c4 commit 2d50757
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 5 deletions.
Expand Up @@ -279,6 +279,9 @@ class TwoValidationStepsWorkflowServiceImpl(
WorkflowAction("Deploy",actions)
case Deployed.id => NoWorkflowAction
case Cancelled.id => NoWorkflowAction
case WorkflowNodeId(x) =>
logger.warn(s"An unknow workflow state was reached with ID: '${x}'. It is likely to be a bug, please report it")
NoWorkflowAction
}
}

Expand All @@ -297,6 +300,9 @@ class TwoValidationStepsWorkflowServiceImpl(
case Deployment.id => if (authorizedRoles.contains("deployer") && canDeploy) Seq((Cancelled.id,stepDeploymentToCancelled _)) else Seq()
case Deployed.id => Seq()
case Cancelled.id => Seq()
case WorkflowNodeId(x) =>
logger.warn(s"An unknow workflow state was reached with ID: '${x}'. It is likely to be a bug, please report it")
Seq()
}
}

Expand All @@ -307,6 +313,9 @@ class TwoValidationStepsWorkflowServiceImpl(
case Deployment.id => authorizedRoles.contains("deployer")
case Deployed.id => false
case Cancelled.id => false
case WorkflowNodeId(x) =>
logger.warn(s"An unknow workflow state was reached with ID: '${x}'. It is likely to be a bug, please report it")
false
}
}

Expand All @@ -316,6 +325,9 @@ class TwoValidationStepsWorkflowServiceImpl(
case Deployment.id => true
case Deployed.id => false
case Cancelled.id => false
case WorkflowNodeId(x) =>
logger.warn(s"An unknow workflow state was reached with ID: '${x}'. It is likely to be a bug, please report it")
false
}
}
def findStep(changeRequestId: ChangeRequestId) : Box[WorkflowNodeId] = {
Expand Down
Expand Up @@ -334,7 +334,6 @@ object DisplayDirectiveTree extends Loggable {
}
}
}

S.appendJs(JsRaw(s"""
var scopeElmnt = '#directiveFilter';
if(!angular.element(scopeElmnt).scope()){
Expand All @@ -344,7 +343,6 @@ object DisplayDirectiveTree extends Loggable {
$$('#showFiltersDirective').on('click', function () {
setTimeout(function(){adjustHeight('#activeTechniquesTree');}, 550);
});
$$('#activeTechniquesTree').on('scroll',function(){$$('.tooltip').hide();});
$$(".bsTooltip").bsTooltip({container: "${if(addEditLink){"#editRuleZonePortlet"}else{"#boxDirectiveTree"}}"})
"""))
directiveLib.subCategories.filterNot(_.isSystem).sortBy( _.name ).flatMap { cat => displayCategory(cat, cat.id.value).toXml }
Expand Down
Expand Up @@ -222,6 +222,11 @@ class DirectiveManagement extends DispatchSnippet with Loggable {
}

buildDirectiveTree('#${htmlId_activeTechniquesTree}', [ directiveId ], '${S.contextPath}', 1);
$$(window).on('resize',function(){
adjustHeight('#activeTechniquesTree');
});
adjustHeight('#activeTechniquesTree');
$$('#activeTechniquesTree').on('scroll',function(){$$('.tooltip').hide();});
createTooltip();
""")
}
Expand Down
5 changes: 2 additions & 3 deletions rudder-web/src/main/webapp/style/rudder/rudder-bootstrap.css
Expand Up @@ -222,13 +222,12 @@
text-align: center;
background-color: white;
position: fixed;
bottom: 50px;
bottom: 55px;
padding-top: 10px;
border-left-width: 0px;
margin-left: 0px;
padding-bottom: 10px;
border-top:5px #DDDDDD solid;
border-right:5px #DDDDDD solid;
margin-left:-15px;
padding-left:15px;
padding-right:15px;
Expand All @@ -237,7 +236,7 @@
}

.directive-footer{
width:65.8%
width:68%
}

.rule-footer{
Expand Down

0 comments on commit 2d50757

Please sign in to comment.