Format code using clang-format-5.0
Once merged, this repository will have CI enforce
the coding guidelines in the .clang-format file.
Change-Id: I96a05972665f9c67625c6850c3da25edc540be06
Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
diff --git a/app/common/directives/log-event.js b/app/common/directives/log-event.js
index c48a3ee..2a71164 100644
--- a/app/common/directives/log-event.js
+++ b/app/common/directives/log-event.js
@@ -1,43 +1,41 @@
window.angular && (function(angular) {
'use strict';
- angular
- .module('app.common.directives')
- .directive('logEvent', ['APIUtils', function(APIUtils) {
+ angular.module('app.common.directives').directive('logEvent', [
+ 'APIUtils',
+ function(APIUtils) {
return {
'restrict': 'E',
'template': require('./log-event.html'),
- 'scope': {
- 'event': '=',
- 'tmz': '=',
- 'multiSelected': '='
- },
- 'controller': ['$rootScope', '$scope', 'dataService', '$location', '$timeout', function($rootScope, $scope, dataService, $location, $timeout) {
- $scope.dataService = dataService;
- $scope.copySuccess = function(event) {
- event.copied = true;
- $timeout(function() {
- event.copied = false;
- }, 5000);
- };
- $scope.copyFailed = function(err) {
- console.error('Error!', err);
- };
- $scope.resolveEvent = function(event) {
- APIUtils.resolveLogs([{
- Id: event.Id
- }]).then(function() {
- event.Resolved = 1;
- });
- };
+ 'scope': {'event': '=', 'tmz': '=', 'multiSelected': '='},
+ 'controller': [
+ '$rootScope', '$scope', 'dataService', '$location', '$timeout',
+ function($rootScope, $scope, dataService, $location, $timeout) {
+ $scope.dataService = dataService;
+ $scope.copySuccess = function(event) {
+ event.copied = true;
+ $timeout(function() {
+ event.copied = false;
+ }, 5000);
+ };
+ $scope.copyFailed = function(err) {
+ console.error('Error!', err);
+ };
+ $scope.resolveEvent = function(event) {
+ APIUtils.resolveLogs([{Id: event.Id}]).then(function() {
+ event.Resolved = 1;
+ });
+ };
- $scope.accept = function() {
- $scope.event.selected = true;
- $timeout(function() {
- $scope.$parent.accept();
- }, 10);
- };
- }]
+ $scope.accept = function() {
+ $scope.event.selected = true;
+ $timeout(function() {
+ $scope.$parent.accept();
+ }, 10);
+ };
+ }
+ ]
};
- }]);
+ }
+ ]);
})(window.angular);