mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-10 07:01:21 +00:00
GUACAMOLE-36: Migrate guacLogin and guacNotification to TranslatableMessage.
This commit is contained in:
@@ -60,7 +60,9 @@ angular.module('notification').factory('guacNotification', ['$injector',
|
||||
* // To show a status message with actions
|
||||
* guacNotification.showStatus({
|
||||
* 'title' : 'Disconnected',
|
||||
* 'text' : 'You have been disconnected!',
|
||||
* 'text' : {
|
||||
* 'key' : 'NAMESPACE.SOME_TRANSLATION_KEY'
|
||||
* },
|
||||
* 'actions' : {
|
||||
* 'name' : 'reconnect',
|
||||
* 'callback' : function () {
|
||||
|
@@ -8,7 +8,9 @@
|
||||
<div class="body">
|
||||
|
||||
<!-- Notification text -->
|
||||
<p ng-show="notification.text" class="text">{{notification.text | translate}}</p>
|
||||
<p ng-show="notification.text" class="text"
|
||||
translate="{{notification.text.key}}"
|
||||
translate-values="{{notification.text.variables}}"></p>
|
||||
|
||||
<!-- Current progress -->
|
||||
<div class="progress" ng-show="notification.progress"><div class="bar" ng-show="progressPercent" ng-style="{'width': progressPercent + '%'}"></div><div
|
||||
|
@@ -53,7 +53,7 @@ angular.module('notification').factory('Notification', [function defineNotificat
|
||||
/**
|
||||
* The body text of the notification.
|
||||
*
|
||||
* @type String
|
||||
* @type TranslatableMessage
|
||||
*/
|
||||
this.text = template.text;
|
||||
|
||||
|
Reference in New Issue
Block a user