Fix rules

This commit is contained in:
JuanCarlos 2019-02-22 11:33:15 +01:00
parent b9e61ecfb1
commit b6e014b74a
3 changed files with 8 additions and 5 deletions

View File

@ -316,7 +316,10 @@ export function RulesController(
$scope.$applyAsync();
}
$scope.toggleRestartMsg = () => {
$scope.restartMsg = false;
$scope.$applyAsync();
}
$scope.doSaveConfig = (isNewFile, fileName) => {
const clusterInfo = appState.getClusterInfo();

View File

@ -190,9 +190,9 @@
<div ng-show="restartMsg" class="confirmEmbedBubble confirmEmbedBubbleInline">
<span class="wz-padding-top-10 wz-padding-left-8">Configuration is not applied yet. Do you want
to restart to apply it?</span>
<button class="btn cancelBtn btn-info md-padding-h" type="button" ng-click="restartMsg = false">I
<button class="btn cancelBtn btn-info md-padding-h" type="button" ng-click="toggleRestartMsg()">I
will do it later</button>
<button class="btn wz-button" type="button" ng-disabled="doingSaving" ng-click="restart(); restartMsg = false">Restart
<button class="btn wz-button" type="button" ng-disabled="doingSaving" ng-click="restart(); toggleRestartMsg()">Restart
now</button>
</div>
</div>

View File

@ -86,9 +86,9 @@
<div ng-show="restartMsg" class="confirmEmbedBubble confirmEmbedBubbleInline">
<span class="wz-padding-top-10 wz-padding-left-8">Configuration is not applied yet. Do you want
to restart to apply it?</span>
<button class="btn cancelBtn btn-info md-padding-h" type="button" ng-click="restartMsg = false">I
<button class="btn cancelBtn btn-info md-padding-h" type="button" ng-click="toggleRestartMsg()">I
will do it later</button>
<button class="btn wz-button" type="button" ng-disabled="doingSaving" ng-click="restart(); restartMsg = false">Restart
<button class="btn wz-button" type="button" ng-disabled="doingSaving" ng-click="restart(); toggleRestartMsg()">Restart
now</button>
</div>
</div>