GUAC-605: Add reconnect button and placeholder.

This commit is contained in:
Michael Jumper
2014-11-12 20:37:24 -08:00
parent b95b32971e
commit c1505cace2
2 changed files with 16 additions and 2 deletions

View File

@@ -209,7 +209,8 @@ angular.module('home').controller('clientController', ['$scope', '$routeParams',
statusModal.activate({
className: "error",
title: "client.error.connectionErrorTitle",
text: "client.error.clientErrors." + errorName
text: "client.error.clientErrors." + errorName,
actions: [ "client.action.reconnect" ]
});
});
@@ -243,11 +244,21 @@ angular.module('home').controller('clientController', ['$scope', '$routeParams',
statusModal.activate({
className: "error",
title: "client.error.connectionErrorTitle",
text: "client.error.tunnelErrors." + errorName
text: "client.error.tunnelErrors." + errorName,
actions: [ "client.action.reconnect" ]
});
});
// Handle reconnect action
$scope.$on('guacStatusAction', function actionListener(event, action) {
// TODO: Implement reconnect
if (action === "client.action.reconnect")
console.log("(Reconnect placeholder)");
});
$scope.formattedScale = function formattedScale() {
return Math.round($scope.clientProperties.scale * 100);
};

View File

@@ -265,6 +265,9 @@
"tunnelStates" : {
"closed" : "You have been disconnected. Reload the page to reconnect."
}
},
"action" : {
"reconnect" : "Reconnect"
}
}
}