There is a way to mantain for future sessions the resized width of the columns (see pictures) in the WebGui ?
Resize columns in WebGui
-
-
I will go through and fix more of the widths once we get to new version. Most of the plugins are pretty much done in .5 now. That screen you show is Volker's code. If something on his codes needs to be adjusted request it in bug tracker. He may adjust the columns. For the serial number you need this code added to the column. It looks like same width would work well with the model column too.
I could show you how to manually edit it but the changes will be lost with every version upgrade of OMV.
-
Here are the 2 functions for the 2 columns mentioned above. @
/var/www/openmediavault/js/omv/module/admin/storage/physicaldisk/PhysicalDisk.jsCode
Alles anzeigen{ xtype: "emptycolumn", text: _("Model"), sortable: true, dataIndex: "model", stateId: "model" },{ xtype: "emptycolumn", text: _("Serial Number"), sortable: true, dataIndex: "serialnumber", stateId: "serialnumber" }
Here they are adjusted with a width setting. There are diferent things you can use to handle widith bedisdee "width".
Code
Alles anzeigen{ xtype: "emptycolumn", text: _("Model"), sortable: true, dataIndex: "model", width: 20, stateId: "model" },{ xtype: "emptycolumn", text: _("Serial Number"), sortable: true, dataIndex: "serialnumber", width: 20, stateId: "serialnumber" }
PS- If you ever manually edit files you should make a backup copy first. Then put it in a /scratch forlder or something. That way if you mess up you can just delete the messed up file and put back the old one.
-
Thanks for the clarification, with my Synology (DSM 5 beta) for example the windows sizes and positions are saved, so when I log in the environment is restored.
I was thinking that something similar was possible also in OMV.ZitatI could show you how to manually edit it but the changes will be lost with every version upgrade of OMV.
It could be interesting, perhaps I could "automate" the edits in the source files.
If is a simple thing to explain I'm interested, I don't want to bother you with a long and complex explanation, I don't want to waste your timeEDIT: Thanks! I will take a look to the code tomorrow. Thank you again.
-
Well if Volker put a flex 1 on the coding it would hold it for a while. But it seems that changes are evenatually lost. I find it is best to just put in a fixed width that works well with whatever data is being rendered.
-
A modified column order and size is stored in a browser cookie.
-
Zitat von "tekkbebe"
I will go through and fix more of the widths once we get to new version. Most of the plugins are pretty much done in .5 now. That screen you show is Volker's code. If something on his codes needs to be adjusted request it in bug tracker. He may adjust the columns. For the serial number you need this code added to the column. It looks like same width would work well with the model column too.
I could show you how to manually edit it but the changes will be lost with every version upgrade of OMV.
No column should have a predefined width without sense. Currently only number columns and columns with icons have predefined witdths. If a user changes the size they will be stored in a browser cookie. Using flexible columns make sense in some situations, but not all. -
These 2 columns here a width 20 would work well because the Max length for the data being rendered seems to be 18.
-
Volker, I really don't think you should worry to much about small issues like this. We can submit files to you with small code changes for you to consider.
-
I apologize to both of you, I had a browser plugin that erased the cookies everytime the browser was opened. Now works for me.
Sorry again to both of you I have wasted your time.
-
Don't be ridiculous Ortega. At least you don't triple post with same question like mandrake.
-
Thanks you're very kind.
I stupidly forgot about the cookie-eraser firefox plugin. -
Hehe - that reminds me of my "Do not track me" addon
Jetzt mitmachen!
Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!