lib/puppet-herald/public/components/directives/status-button.js in puppet-herald-0.1.1 vs lib/puppet-herald/public/components/directives/status-button.js in puppet-herald-0.2.0

- old
+ new

@@ -8,12 +8,12 @@ module.controller('StatusButtonController', ['$location', '$scope', function($location, $scope) { $scope.$location = $location; - $scope.navigate = function() { - var target = this.route.replace(':id', this.id); + $scope.navigate = function(route, id) { + var target = route.replace(':id', id); this.$location.path(target); }; }]); @@ -34,10 +34,11 @@ return function(input) { switch(input) { case 'unchanged': return 'success'; case 'changed': return 'info'; case 'failed': return 'danger'; + case 'pending': return 'warning'; default: return 'default'; } } }); @@ -45,10 +46,11 @@ return function(input) { switch(input) { case 'unchanged': return 'ok'; case 'changed': return 'pencil'; case 'failed': return 'remove'; - default: return 'asterisk'; + case 'pending': return 'asterisk'; + default: return 'sign'; } } }); })(); \ No newline at end of file