jmuehlner commented on code in PR #796:
URL: https://github.com/apache/guacamole-client/pull/796#discussion_r1117492635
##########
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:
Or alternatively, you could consider rendering completely different elements
based on `isActive` using e.g. `ng-view="isActive"` or `ng-view="!isActive"`.
That might end up being easier and probably wouldn't require dynamically
fiddling CSS classes.
--
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]