jmuehlner commented on code in PR #796:
URL: https://github.com/apache/guacamole-client/pull/796#discussion_r1117477306
##########
guacamole/src/main/frontend/src/app/clipboard/directives/guacClipboard.js:
##########
@@ -71,6 +89,32 @@ angular.module('clipboard').directive('guacClipboard',
['$injector',
};
+ /**
+ * Allows Clipboard Editor to begin displaying clipboard data, reads
the
+ * clipboard data and updates the content of the clipboard editor to
the
+ * given data.
+ */
+ var displayAndUpdateClipboardEditor = function
displayAndUpdateClipboardEditor() {
+ isActive = true;
+ element.value = ''
+ element.classList.remove("inactive");
Review Comment:
You can do this same thing with `ng-class` in the template - no need to put
this kind of functionality directly in the controller.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]