/// /// /// /// /// /// module Configs{ export var GfsController = controller('GfsController', ["$scope", "$templateCache", "$location", "$routeParams", "$http", "$timeout", 'ConfigsModel', 'ngDialog', ($scope, $templateCache:ng.ITemplateCacheService, $location, $routeParams, $http, $timeout, ConfigsModel, ngDialog) =>{ $scope.model = ConfigsModel; $scope.volumes = ConfigsModel.cluster; shareInit($scope, $location, $routeParams); $scope.createGfs = () => { ngDialog.open({ template: 'newDialog.html', width: 1005, data: { name: null, path: null, status: "", brick: [{ ip: ["0", "0", "0", "0"], path: "", status: false }] }, className: 'ngdialog-theme-default', controller: ['$scope', function($scope) { $scope.save = () =>{ $scope.closeThisDialog(); } $scope. cancel = () =>{ $scope.closeThisDialog(); } }] }); } $scope.editRow = (volume) => { var fVolume = formatVolume(volume); ngDialog.open({ template: 'newDialog.html', width: 1005, data: fVolume, className: 'ngdialog-theme-default', controller: ['$scope', function($scope) { console.log($scope); $scope.save = () =>{ $scope.closeThisDialog(); } $scope. cancel = () =>{ $scope.closeThisDialog(); } }] }); } }]); }