NIFI-3502:

- Preventing digest() during an ongoing apply() or digest() lifecycle.

This closes #2471

Signed-off-by: Scott Aslan <scottyaslan@gmail.com>
This commit is contained in:
Matt Gilman 2018-02-20 14:26:46 -05:00 committed by Scott Aslan
parent bf72d05825
commit ba9e72ed8b
2 changed files with 14 additions and 6 deletions

View File

@ -35,7 +35,7 @@
}(this, function (nfCanvasUtils, nfContextMenu) {
'use strict';
return function () {
return function ($timeout) {
'use strict';
function NavigateCtrl() {
@ -44,28 +44,36 @@
* Zoom in on the canvas.
*/
this.zoomIn = function () {
$timeout(function () {
nfCanvasUtils.zoomInCanvas();
}, 0);
};
/**
* Zoom out on the canvas.
*/
this.zoomOut = function () {
$timeout(function () {
nfCanvasUtils.zoomOutCanvas();
}, 0);
};
/**
* Zoom fit on the canvas.
*/
this.zoomFit = function () {
$timeout(function () {
nfCanvasUtils.fitCanvas();
}, 0);
};
/**
* Zoom actual size on the canvas.
*/
this.zoomActualSize = function () {
$timeout(function () {
nfCanvasUtils.actualSizeCanvas();
}, 0);
};
}

View File

@ -259,7 +259,7 @@
templateComponent.$inject = ['serviceProvider'];
labelComponent.$inject = ['serviceProvider'];
graphControlsCtrl.$inject = ['serviceProvider', 'navigateCtrl', 'operateCtrl'];
navigateCtrl.$inject = [];
navigateCtrl.$inject = ['$timeout'];
operateCtrl.$inject = [];
breadcrumbsDirective.$inject = ['breadcrumbsCtrl'];
draggableDirective.$inject = [];