1
0
Fork 0
mirror of https://github.com/mmumshad/ansible-playable.git synced 2025-03-09 23:38:54 +00:00

Fix Template loading

This commit is contained in:
Mumshad Mannambeth 2017-07-08 13:40:03 -04:00
parent 7ace379937
commit 34a003c698
7 changed files with 16 additions and 32 deletions

View file

@ -4,7 +4,7 @@ const angular = require('angular');
export default angular.module('webAppApp.tasks', [])
.directive('tasks', function(ansible, $uibModal) {
return {
templateUrl: 'app/designer/tasks/tasks.html',
template: require('./tasks.html'),
restrict: 'EA',
scope: {
tasksList: '=',
@ -23,7 +23,6 @@ export default angular.module('webAppApp.tasks', [])
scope.tasksMetaData = [];
scope.$watch('tasksList',function(){
console.log('tasks list changed');
scope.tasksMetaData = [];
angular.forEach(scope.tasksList,function(task){
@ -94,8 +93,7 @@ export default angular.module('webAppApp.tasks', [])
scope.showTaskModal = function(selectedTaskIndex, copyTask){
var modalInstance = $uibModal.open({
animation: true,
/*templateUrl: 'createTaskContent.html',*/
templateUrl: 'app/designer/tasks/new_task/new_task.html',
template: require('./new_task/new_task.html'),
controller: 'NewTaskController',
size: 'lg',
backdrop : 'static',