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:
@@ -127,7 +127,9 @@ angular.module('settings').directive('guacSettingsPreferences', [function guacSe
|
||||
guacNotification.showStatus({
|
||||
className : 'error',
|
||||
title : 'SETTINGS_PREFERENCES.DIALOG_HEADER_ERROR',
|
||||
text : 'SETTINGS_PREFERENCES.ERROR_PASSWORD_MISMATCH',
|
||||
text : {
|
||||
key : 'SETTINGS_PREFERENCES.ERROR_PASSWORD_MISMATCH'
|
||||
},
|
||||
actions : [ ACKNOWLEDGE_ACTION ]
|
||||
});
|
||||
return;
|
||||
@@ -138,7 +140,9 @@ angular.module('settings').directive('guacSettingsPreferences', [function guacSe
|
||||
guacNotification.showStatus({
|
||||
className : 'error',
|
||||
title : 'SETTINGS_PREFERENCES.DIALOG_HEADER_ERROR',
|
||||
text : 'SETTINGS_PREFERENCES.ERROR_PASSWORD_BLANK',
|
||||
text : {
|
||||
key : 'SETTINGS_PREFERENCES.ERROR_PASSWORD_BLANK'
|
||||
},
|
||||
actions : [ ACKNOWLEDGE_ACTION ]
|
||||
});
|
||||
return;
|
||||
@@ -155,7 +159,9 @@ angular.module('settings').directive('guacSettingsPreferences', [function guacSe
|
||||
|
||||
// Indicate that the password has been changed
|
||||
guacNotification.showStatus({
|
||||
text : 'SETTINGS_PREFERENCES.INFO_PASSWORD_CHANGED',
|
||||
text : {
|
||||
key : 'SETTINGS_PREFERENCES.INFO_PASSWORD_CHANGED'
|
||||
},
|
||||
actions : [ ACKNOWLEDGE_ACTION ]
|
||||
});
|
||||
})
|
||||
@@ -165,7 +171,7 @@ angular.module('settings').directive('guacSettingsPreferences', [function guacSe
|
||||
guacNotification.showStatus({
|
||||
className : 'error',
|
||||
title : 'SETTINGS_PREFERENCES.DIALOG_HEADER_ERROR',
|
||||
'text' : error.message,
|
||||
text : error.translatableMessage,
|
||||
actions : [ ACKNOWLEDGE_ACTION ]
|
||||
});
|
||||
});
|
||||
|
@@ -334,7 +334,7 @@ angular.module('settings').directive('guacSettingsSessions', [function guacSetti
|
||||
guacNotification.showStatus({
|
||||
'className' : 'error',
|
||||
'title' : 'SETTINGS_SESSIONS.DIALOG_HEADER_ERROR',
|
||||
'text' : error.message,
|
||||
'text' : error.translatableMessage,
|
||||
'actions' : [ ACKNOWLEDGE_ACTION ]
|
||||
});
|
||||
});
|
||||
@@ -349,7 +349,9 @@ angular.module('settings').directive('guacSettingsSessions', [function guacSetti
|
||||
// Confirm deletion request
|
||||
guacNotification.showStatus({
|
||||
'title' : 'SETTINGS_SESSIONS.DIALOG_HEADER_CONFIRM_DELETE',
|
||||
'text' : 'SETTINGS_SESSIONS.TEXT_CONFIRM_DELETE',
|
||||
'text' : {
|
||||
'key' : 'SETTINGS_SESSIONS.TEXT_CONFIRM_DELETE'
|
||||
},
|
||||
'actions' : [ DELETE_ACTION, CANCEL_ACTION]
|
||||
});
|
||||
};
|
||||
|
Reference in New Issue
Block a user