cockpit-project / cockpit-machines

Cockpit UI for virtual machines
GNU Lesser General Public License v2.1
288 stars 74 forks source link

console view does not remember state #1039

Open garrett opened 1 year ago

garrett commented 1 year ago
          Another one which bugs me is the Console view.

"Desktop viewer" is always selected by default (when present), I constantly switch it to serial console, only to be reminded of how tiny the console box is, so I click the "Expand" button which does make it more useable, but at the same time it decides to revert the selection back to "Desktop viewer" 😭

Originally posted by @shaul75 in https://github.com/cockpit-project/cockpit-machines/issues/1032#issuecomment-1513852651

jelly commented 3 weeks ago

For someone wanting to implement this, we to save this in localStorage, see for example how virtualization-disabled-ignored is saved in localStorage

ashley-cui commented 2 weeks ago

looks like the console state is managed by a the patternfly component, which we cant read unfortunately

jelly commented 2 weeks ago

Created an issue in react-console for this feature request https://github.com/patternfly/react-console/issues/67