mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-06 21:27:40 +00:00
GUACAMOLE-103: Move to using Translatable for redirect message; clean up comments.
This commit is contained in:
@@ -28,16 +28,5 @@ angular.module('form').controller('redirectFieldController', ['$scope','$window'
|
||||
* Redirect the user to the provided URL.
|
||||
*/
|
||||
$window.location.href = $scope.field.redirectUrl;
|
||||
|
||||
/**
|
||||
* Return the text that should be displayed to the user while the redirect
|
||||
* is taking place.
|
||||
*
|
||||
* @return {String}
|
||||
* The text to display for the user during the redirect.
|
||||
*/
|
||||
$scope.getRedirectMsg = function getRedirctMsg() {
|
||||
return $scope.field.redirectMsg;
|
||||
};
|
||||
|
||||
}]);
|
||||
|
@@ -1,5 +1,8 @@
|
||||
<div class="redirect-field-container">
|
||||
<div class="redirect-field">
|
||||
<p>{{ getRedirectMsg() | translate }}</p>
|
||||
<p ng-show="field.translatableMessage"
|
||||
translate="{{field.translatableMessage.key}}"
|
||||
translate-values="{{field.translatableMessage.variables}}">
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
Reference in New Issue
Block a user