GUACAMOLE-103: Move to using Translatable for redirect message; clean up comments.

This commit is contained in:
Virtually Nick
2020-06-21 22:00:34 -04:00
parent 5762cdda47
commit a0ee0475ed
7 changed files with 39 additions and 43 deletions

View File

@@ -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;
};
}]);

View File

@@ -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>