|
@@ -1,6 +1,6 @@
|
1
|
1
|
angular.module('camotion')
|
2
|
|
- .controller('CommandsController', ['$scope', 'CommandsService',
|
3
|
|
- function($scope, CommandsService) {
|
|
2
|
+ .controller('CommandsController', ['$scope', 'CommandsService', 'dialogs',
|
|
3
|
+ function($scope, CommandsService, dialogs) {
|
4
|
4
|
|
5
|
5
|
$scope.luTable = {
|
6
|
6
|
columns: [
|
|
@@ -30,8 +30,12 @@ angular.module('camotion')
|
30
|
30
|
|
31
|
31
|
onItemClicked: function(command)
|
32
|
32
|
{
|
33
|
|
- CommandsService.exec({command_id: command.Id});
|
34
|
|
- console.log(command);
|
|
33
|
+ dialogs.create('views/modals/commandexec.html', 'CommandExecController', command)
|
|
34
|
+ .result.then(function (data) {
|
|
35
|
+
|
|
36
|
+ });
|
|
37
|
+ /*CommandsService.exec({command_id: command.Id});
|
|
38
|
+ console.log(command);*/
|
35
|
39
|
}
|
36
|
40
|
};
|
37
|
41
|
}]);
|