redhat-developer / openshift-dd-ext

OpenShift Extension for Docker desktop
MIT License
20 stars 7 forks source link

Login with token: Don't cancel default paste event handler when no token in clipboard #37

Closed dgolovin closed 2 years ago

dgolovin commented 2 years ago

OpenShift Sandbox generates oc login command that is not recognized correctly and pasting that command to Cluster URL field has no effect in login with token form. The same is happening if one tries to paste just URL value from clipboard. On paste event handler should cancel default event handler only when it recognizes oc login command in clipboard to let normal paste to work as usual.