mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-11 15:37:41 +00:00
Display errors in red.
This commit is contained in:
@@ -750,6 +750,22 @@ GuacUI.Download = function(filename) {
|
||||
progress.textContent = text;
|
||||
};
|
||||
|
||||
/**
|
||||
* Updates the content of the dialog to reflect an error condition
|
||||
* represented by the given text.
|
||||
*
|
||||
* @param {String} text A human-readable description of the error.
|
||||
*/
|
||||
this.showError = function(text) {
|
||||
|
||||
element.removeChild(progress);
|
||||
GuacUI.addClass(element, "error");
|
||||
|
||||
var status = GuacUI.createChildElement(element, "div", "status");
|
||||
status.textContent = text;
|
||||
|
||||
};
|
||||
|
||||
/**
|
||||
* Removes the progress indicator and replaces it with a download button.
|
||||
*/
|
||||
@@ -845,6 +861,22 @@ GuacUI.Upload = function(filename) {
|
||||
progress.textContent = text;
|
||||
};
|
||||
|
||||
/**
|
||||
* Updates the content of the dialog to reflect an error condition
|
||||
* represented by the given text.
|
||||
*
|
||||
* @param {String} text A human-readable description of the error.
|
||||
*/
|
||||
this.showError = function(text) {
|
||||
|
||||
element.removeChild(progress);
|
||||
GuacUI.addClass(element, "error");
|
||||
|
||||
var status = GuacUI.createChildElement(element, "div", "status");
|
||||
status.textContent = text;
|
||||
|
||||
};
|
||||
|
||||
/**
|
||||
* Returns the element representing this notification.
|
||||
*/
|
||||
|
Reference in New Issue
Block a user