Added delete feature for nodes.
This commit is contained in:
parent
39e7af6238
commit
79aadc85c2
20 changed files with 300 additions and 20 deletions
app/scripts/dialogs
29
app/scripts/dialogs/confirmDeletionDialog.js
Normal file
29
app/scripts/dialogs/confirmDeletionDialog.js
Normal file
|
@ -0,0 +1,29 @@
|
|||
'use strict';
|
||||
|
||||
angular.module('ffffng')
|
||||
.factory('ConfirmDeletionDialog', function ($uibModal, config) {
|
||||
var ctrl = function ($scope, $uibModalInstance, node) {
|
||||
$scope.node = node;
|
||||
$scope.config = config;
|
||||
|
||||
$scope.proceed = function () {
|
||||
$uibModalInstance.close();
|
||||
};
|
||||
|
||||
$scope.cancel = function () {
|
||||
$uibModalInstance.dismiss('cancel');
|
||||
};
|
||||
};
|
||||
|
||||
return {
|
||||
open: function (node) {
|
||||
return $uibModal.open({
|
||||
controller: ctrl,
|
||||
templateUrl: 'views/dialogs/confirmDeletionDialog.html',
|
||||
resolve: {
|
||||
node: function () { return node; }
|
||||
}
|
||||
});
|
||||
}
|
||||
};
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue