From 5468a7028f710ecd64495d250049ae82e5fe84fd Mon Sep 17 00:00:00 2001 From: Chris Houseknecht Date: Fri, 25 Apr 2014 19:38:08 -0400 Subject: [PATCH] Fixed socket status check to correctly update the tooltip. --- awx/ui/static/lib/ansible/Socket.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/awx/ui/static/lib/ansible/Socket.js b/awx/ui/static/lib/ansible/Socket.js index d709960a74..38e14726b9 100644 --- a/awx/ui/static/lib/ansible/Socket.js +++ b/awx/ui/static/lib/ansible/Socket.js @@ -135,18 +135,16 @@ angular.module('SocketIO', ['AuthService', 'Utilities']) if (self.socket.socket.connected) { $log.debug('Socket connected'); self.scope.socketStatus = 'ok'; - self.scope.socketTip = 'Connected. Click to close.'; } else if (self.socket.socket.connecting || self.socket.socket.reconnecting) { $log.debug('Socket connecting...'); self.scope.socketStatus = 'connecting'; - self.scope.socketTip = 'Connecting. Click to cancel.'; } else { $log.debug('Socket error: connection refused'); self.scope.socketStatus = 'error'; - self.scope.socketTip = 'Connection failed. Click to retry'; } + self.scope.$emit('socketStatusChange'); return self.scope.socketStatus; }, on: function (eventName, callback) {