Univention Bugzilla – Bug 29261
Kontextmenu im DriveGrid lässt sich nicht öffnen
Last modified: 2013-06-13 14:38:24 CEST
Wenn man bei einer VM in den Reiter "Geräte" wechselt und dort bei einem Laufwerk das Kontextmenu mit der linken Maustaste öffnet (über den 'mehr'-Button) so verschwindet das Kontextmenu, sobald man mit dem Mauszeiger drüber fährt. Das Problem tritt nur auf, denn die Maschine zu dem Zeitpunkt läuft. Über die rechte Maustaste ist das Kontextmenu ohne Probleme erreichbar. Ich konnte das Problem bei keinem anderen Grid feststellen. Bspw. im UMC-Modul "Systemdienste" wird auch ein Grid verwendet, welches ein Kontextmenu über einen 'mehr'-Button bereitstellt. Dort führt dies zu keinen Problemen. Aufgefallen ist dies in Bug #27817
Created attachment 5163 [details] UVMM patch The problem here is that the DomainPage instant is getting disabled when opening a running instance and the DriveGrid gets disabled, as well. As "disabled" means that the item cannot be accessed, the focus behaviour changes assuming DriveGrid cannot be edited (as it is marked as "disabled") and this causes the menu to be closed. However, in this case, "disabled" does not mean "disabled", as the DriveGrid should still be accessible. Two solutions: * overwrite _getDisabledAttr() to always return false ? this is a quick, dirty hack (as attached in the patch) and I would discourage as it is making the code less comprehensible in the long run * do not use the "disabled" attribute, yet use something more meaningful (e.g., domainRunning=true, domainState="RUNNING", ...)
BTW, DomainPage.disabled should also be omitted (see patch).
This has been fixed with the second solution. - ucs3.1-1 + YAML Package: univention-virtual-machine-manager-daemon Version: 2.0.36-4.439.201304091050 - ucs3.1-2 + Changelog Package: univention-virtual-machine-manager-daemon Version: 2.0.37-1.437.201304091014
*** Bug 29389 has been marked as a duplicate of this bug. ***
OK: 3.1-1 → errata3.1-1 → 3.1-2 OK: svn39911 FIXED: yaml (r40641) OK: 3.1-1 → ucs3.1-2 OK: svn39908 FIXED: Changelog (r40641)
http://errata.univention.de/ucs/3.1/125.html